/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #2980b9;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --border-color: #ddd;
    --text-color: #333;
    --text-light: #666;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2530 100%);
    color: white;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.academy-logo h1 {
    font-size: 24px;
    margin-bottom: 5px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.academy-address {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 400px;
}

.reg-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reg-no {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: var(--radius);
    font-weight: bold;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info p {
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.contact-info i {
    font-size: 16px;
}

/* Navigation */
.main-nav {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0 20px;
    border-radius: 0 0 var(--radius) var(--radius);
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    flex: 1;
}

.main-nav a {
    display: block;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-bottom: 3px solid var(--secondary-color);
}

.main-nav a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.main-nav i {
    margin-right: 8px;
    font-size: 16px;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.total-students .stat-icon {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
}

.fee-collection .stat-icon {
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
}

.pending-dues .stat-icon {
    background: linear-gradient(135deg, var(--warning-color), #e67e22);
}

.admissions .stat-icon {
    background: linear-gradient(135deg, var(--info-color), #3498db);
}

.stat-info h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info h2 {
    font-size: 28px;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-info p {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-info span {
    font-weight: 600;
    color: var(--text-color);
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-bg);
    flex-wrap: wrap;
    gap: 15px;
}

.card-header h3 {
    font-size: 18px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-weight: 600;
}

.card-header h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 20px;
}

.view-all {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.view-all:hover {
    text-decoration: none;
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-bg);
    flex-wrap: wrap;
    gap: 10px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    background-color: var(--light-bg);
    color: var(--primary-color);
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.data-table tr:hover td {
    background-color: #f8f9fa;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Search Box */
.search-box {
    position: relative;
    width: 300px;
    max-width: 100%;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn i {
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    border: 1px solid var(--secondary-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
    color: white;
    border: 1px solid var(--success-color);
}

.btn-success:hover {
    background: linear-gradient(135deg, #2ecc71, var(--success-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #e67e22);
    color: white;
    border: 1px solid var(--warning-color);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, var(--warning-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
    color: white;
    border: 1px solid var(--accent-color);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: 1px solid #95a5a6;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
    flex-shrink: 0;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active,
.status-paid {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.status-pending {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.status-overdue,
.status-inactive {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Form Styles */
.form-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-bg);
    border-radius: var(--radius) var(--radius) 0 0;
}

.form-header h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-weight: 600;
}

.form-header h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 20px;
}

.close-form {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-form:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--accent-color);
}

.form-section {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    font-weight: 600;
}

.section-title i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.form-group label.required::after {
    content: ' *';
    color: var(--accent-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Form Validation Styles */
.form-control.error {
    border-color: var(--accent-color) !important;
    background-color: rgba(231, 76, 60, 0.05);
}

.form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.error-message {
    color: var(--accent-color);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.required-star {
    color: var(--accent-color);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Fee Agreement Error Styling */
.checkbox-label.fee-agreement-error {
    border-color: var(--accent-color) !important;
    background-color: rgba(231, 76, 60, 0.1) !important;
    border-width: 2px !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.photo-upload {
    border: 2px dashed var(--border-color);
    padding: 40px 20px;
    text-align: center;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.photo-upload:hover {
    border-color: var(--secondary-color);
    background-color: var(--light-bg);
}

.photo-upload i {
    font-size: 48px;
    color: #aaa;
    margin-bottom: 15px;
    display: block;
}

.photo-upload p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.document-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.checkbox-label:hover {
    background-color: #f8f9fa;
    border-color: var(--border-color);
}

.checkbox-label input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.declaration-box {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary-color);
}

.declaration-text {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

.fee-options {
    margin-top: 25px;
}

.fee-breakdown {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 15px;
    border: 1px solid var(--border-color);
}

.fee-breakdown p {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.fee-breakdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fee-breakdown li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
}

.fee-breakdown li:last-child {
    border-bottom: none;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 16px;
}

.form-actions {
    padding: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background-color: var(--light-bg);
    border-radius: 0 0 var(--radius) var(--radius);
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

.page-header h2 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-weight: 600;
    margin: 0;
}

.page-header h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 24px;
}

.page-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Fee Summary */
.fee-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 20px;
    color: white;
    background-color: var(--secondary-color);
    flex-shrink: 0;
}

.summary-content h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 600;
}

.summary-content h2 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-weight: 700;
}

.summary-content p {
    font-size: 12px;
    color: var(--text-light);
}

/* Tabs */
.tabs-container {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.tabs {
    display: flex;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.tab {
    padding: 15px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.tab:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--text-color);
}

.tab.active {
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
    background-color: white;
}

.tab-content {
    padding: 20px;
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-bg);
    border-radius: var(--radius) var(--radius) 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-weight: 600;
    margin: 0;
}

.modal-header h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--accent-color);
}

/* Student Info */
.student-info {
    line-height: 1.4;
}

.student-info strong {
    display: block;
    margin-bottom: 2px;
}

.student-info small {
    color: var(--text-light);
    font-size: 12px;
    display: block;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.btn-view {
    background: linear-gradient(135deg, var(--info-color), #3498db);
    color: white;
}

.btn-view:hover {
    background: linear-gradient(135deg, #3498db, var(--info-color));
}

.btn-edit {
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
    color: white;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #2ecc71, var(--success-color));
}

.btn-delete {
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
    color: white;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c0392b, var(--accent-color));
}

.btn-receipt {
    background: linear-gradient(135deg, var(--warning-color), #e67e22);
    color: white;
}

.btn-receipt:hover {
    background: linear-gradient(135deg, #e67e22, var(--warning-color));
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    text-align: center;
}

.action-btn:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    color: var(--secondary-color);
}

.action-btn i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

.action-btn span {
    font-weight: 600;
    font-size: 14px;
}

/* Content Layout */
.content-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Table Info & Pagination */
.table-info {
    font-size: 14px;
    color: var(--text-light);
}

.table-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-pagination span {
    font-size: 14px;
    color: var(--text-color);
    min-width: 80px;
    text-align: center;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius) var(--radius) 0 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: white;
}

.footer-left p {
    opacity: 0.8;
    font-size: 14px;
}

.footer-right p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.footer-right i {
    opacity: 0.8;
}

.footer-bottom {
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 14px;
    border-radius: 0 0 var(--radius) var(--radius);
}

.footer-bottom p {
    opacity: 0.8;
}

/* Days Left Indicator */
.days-left {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.days-left.warning {
    background-color: #ffd8d8;
    color: var(--accent-color);
}

/* Overdue Badge */
.overdue-badge {
    padding: 4px 10px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Student Due Cards */
.students-due-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.student-due-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s ease;
}

.student-due-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.student-due-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.due-amount {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-color);
}

.student-due-details p {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.student-due-details span:first-child {
    font-weight: 600;
    color: var(--text-light);
}

/* Fee Details */
.fee-details {
    margin: 20px 0;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: var(--radius);
}

.fee-breakdown h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.pending-fee-item {
    background: white;
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    border-left: 4px solid var(--warning-color);
    transition: all 0.3s ease;
}

.pending-fee-item:hover {
    transform: translateX(5px);
}

.pending-fee-item:last-child {
    margin-bottom: 0;
}

/* Photo Preview */
#photoPreview {
    text-align: center;
    margin-top: 15px;
}

#previewImage {
    max-width: 150px;
    max-height: 150px;
    border-radius: var(--radius);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
}

/* Validation Styles */
.form-control.error {
    border-color: var(--accent-color);
    background-color: rgba(231, 76, 60, 0.05);
}

.form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: var(--accent-color);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-control.error + .error-message {
    display: block;
}

/* Loading States */
.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--border-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--text-light);
}

.empty-state p {
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .academy-logo {
        text-align: center;
    }
    
    .reg-info {
        text-align: center;
        align-items: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .content-row {
        grid-template-columns: 1fr;
    }
    
    .quick-stats,
    .fee-summary {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .page-actions {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .document-list {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .card-header h3 {
        justify-content: center;
    }
    
    .view-all {
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .stat-card,
    .summary-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon,
    .summary-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .table-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-icon {
        width: 100%;
        margin: 2px 0;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .main-nav,
    .page-actions,
    .card-header .view-all,
    .action-buttons,
    .main-footer,
    .no-print {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .content-card {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .data-table th {
        background: #f0f0f0 !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
    }
    
    a {
        color: black !important;
        text-decoration: none !important;
    }
}
/* Institute Switcher */
.institute-switcher {
    margin-left: 15px;
    position: relative;
}

.institute-switcher select {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px 8px 12px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    min-width: 180px;
}

.institute-switcher select:hover {
    background-color: rgba(255,255,255,0.25);
}

.institute-switcher select option {
    background: #2c3e50;
    color: white;
    padding: 10px;
}

/* Dynamic Institute Header */
.academy-logo h1 {
    font-family: 'Arial', 'Mangal', sans-serif;
    transition: all 0.3s ease;
}

.academy-address, .reg-no {
    transition: all 0.3s ease;
}

/* Loading Animation for Institute Data */
.institute-loading {
    position: relative;
    overflow: hidden;
}

.institute-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}