/**
 * Main Stylesheet for Okhla Ayurvedic Medical College And Research Centre Registration Portal
 */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.portal-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100px;
}

.header-left {
    width: 120px;
    text-align: left;
    flex-shrink: 0;
}

.header-logo-left {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.header-right {
    width: 120px;
    text-align: right;
    flex-shrink: 0;
}

.header-logo-right {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.header-logo-img {
    width: 100px;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

.header-center {
    flex: 1;
    text-align: center;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    color: #0066cc;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
    font-family: 'Arial', 'Helvetica', sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.header-subtitle {
    font-size: 15px;
    text-align: center;
    color: #cc0000;
    font-weight: 600;
    font-family: 'Arial', 'Helvetica', sans-serif;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.header-image {
    height: 60px;
    padding: 0 10px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 15px;
        min-height: auto;
    }
    
    .header-left,
    .header-right {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .header-center {
        padding: 10px 0;
        order: -1;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .header-subtitle {
        font-size: 13px;
    }
    
    .header-logo-img {
        width: 80px;
        max-height: 80px;
    }
}

/* Notice Marquee Styles */
.notice-marquee {
    background-color: #dc3545;
    color: #fff;
    padding: 10px 0;
    border-bottom: 2px solid #c82333;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.notice-marquee marquee {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.notice-marquee strong {
    font-weight: 700;
    margin-right: 10px;
}

.notice-marquee i {
    margin-right: 8px;
    animation: blink 1.5s infinite;
}

.notice-marquee-link {
    color: #fff;
    text-decoration: underline;
}

.notice-marquee-link:hover {
    color: #ffe0e0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Footer Styles */
.portal-footer {
    background-color: #343a40;
    color: #fff;
    padding: 15px 0;
    margin-top: auto;
    font-size: 14px;
}

.portal-footer .row {
    align-items: center;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
}

/* Registration Page Card Header - Colorful Gradient */
.registration-card-header {
    background: linear-gradient(135deg, #0d6efd, #6610f2, #20c997);
    background-size: 200% 200%;
    animation: regHeaderGradient 6s ease infinite;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

@keyframes regHeaderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Highlight important new fields */
#matric_board {
    border-left: 4px solid var(--info-color);
}

#matric_board:focus {
    border-left-color: var(--success-color);
}

/* Form Styles */
.form-label {
    font-weight: 500;
    margin-bottom: 5px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.is-invalid {
    border-color: var(--danger-color);
}

/* CAPTCHA Display */
.captcha-display {
    font-family: 'Courier New', monospace;
    user-select: none;
    cursor: not-allowed;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.upload-area.dragover {
    border-color: var(--success-color);
    background-color: #d1e7dd;
}

.upload-placeholder {
    color: #6c757d;
}

/* Progress Bar */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Tab Navigation */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background-color: transparent;
}

/* Table Styles */
.table {
    font-size: 14px;
}

.table thead th {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    font-weight: 600;
    text-align: center;
}

.table tbody td {
    vertical-align: middle;
}

/* Sidebar Navigation for Form */
.sidebar-nav .list-group-item {
    border: none;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.sidebar-nav .list-group-item:hover {
    background-color: #f8f9fa;
    border-left-color: var(--primary-color);
}

.sidebar-nav .list-group-item.active {
    background-color: #0d6efd;
    color: #fff;
    border-left-color: #ffc107;
}

.sidebar-nav .list-group-item.active i.fa-circle-dot {
    color: #fff !important;
}

/* Button Styles */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Section Styles */
.section {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 20px;
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-container {
        margin: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}

/* Camera Capture Styles */
.camera-wrapper {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.camera-wrapper video {
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    transform: scaleX(-1); /* Mirror effect for selfie */
}

#camera-status {
    min-height: 40px;
}

#camera-status .alert-sm {
    padding: 8px 12px;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Camera Selection Modal */
.camera-selection-modal {
    z-index: 1055;
}

.camera-selection-modal .list-group-item {
    cursor: pointer;
    transition: all 0.2s;
}

.camera-selection-modal .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.camera-selection-modal .list-group-item.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.photo-preview-wrapper {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.photo-edit-area {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.photo-edit-area img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 4px;
}

.photo-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.photo-actions .btn {
    min-width: 120px;
}

/* Cropper Overlay */
.cropper-container {
    direction: ltr;
    font-size: 0;
    line-height: 0;
    position: relative;
    touch-action: none;
    user-select: none;
}

.cropper-view-box,
.cropper-face {
    display: block;
    height: 100%;
    outline-color: rgba(51, 153, 255, 0.75);
    outline-width: 1px;
    overflow: hidden;
    width: 100%;
}
