/* HC Admission Namespaced Styles */
.hca-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.hca-header {
    background: #153a6e;
    color: #fff;
    padding: 25px;
    text-align: center;
}

.hca-header h2 { margin: 0; font-size: 24px; color: #fff; }

.hca-form { padding: 30px; }

.hca-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hca-group { margin-bottom: 20px; }
.hca-group.full { grid-column: span 2; }

.hca-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
}

.hca-group label span { color: #d63638; }

.hca-group input, .hca-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border 0.3s;
}

.hca-group input:focus, .hca-group select:focus {
    border-color: #153a6e;
    outline: none;
}

.hca-submit-btn {
    width: 100%;
    padding: 15px;
    background: #153a6e;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.hca-submit-btn:hover { background: #0d2a52; }

/* Lightbox/Popup */
.hca-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    backdrop-filter: blur(5px);
}

.hca-popup {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: hcaPop 0.3s ease;
}

@keyframes hcaPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.hca-popup-header {
    background: #153a6e;
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
}

.hca-popup-header h3 { margin: 0; color: #fff; font-size: 18px; }

.hca-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.hca-popup-body { padding: 30px; text-align: center; }

.hca-popup-footer {
    padding: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    background: #f9f9f9;
}

.hca-btn {
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    border: none;
}

.hca-btn-yes { background: #153a6e; color: #fff; }
.hca-btn-no { background: #eee; color: #444; }

/* Success Message */
.hca-success-msg {
    text-align: center;
    padding: 50px 30px;
}

.hca-success-msg h2 {
    color: #153a6e;
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hca-success-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hca-success-links a {
    color: #153a6e;
    text-decoration: none;
    font-weight: 600;
}

.hca-success-links a:hover { text-decoration: underline; }

/* Admin Table */
.hca-admin-table { width: 100%; border-collapse: collapse; }
.hca-admin-table th, .hca-admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
.hca-admin-table th { background: #153a6e; color: #fff; }

.hca-icon { cursor: pointer; font-size: 18px; margin-right: 10px; }
.hca-delete { color: #d63638; }
.hca-view { color: #153a6e; }

/* Print Styles */
@media print {
    body * { visibility: hidden; }
    .hca-popup, .hca-popup * { visibility: visible; }
    .hca-popup { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
    .hca-popup-close, .hca-popup-footer button:not(.hca-print-btn) { display: none; }
}

@media (max-width: 600px) {
    .hca-grid { grid-template-columns: 1fr; }
    .hca-group.full { grid-column: span 1; }
}
