/* Styling for the Left Panel on Register Page */
.left-panel {
    width: 35%; /* Smaller width for the left panel */
    background: linear-gradient(135deg, #3498db, #2980b9); /* Attractive blue gradient */
    color: white;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px 0 0 10px; /* Rounded on the left side */
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden; /* For pseudo-elements and animations */
    min-height: 100%; /* Ensure it matches form height */
}

/* Animated background elements */
.left-panel::before,
.left-panel::after {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: panelPulse 4s infinite ease-in-out alternate;
    z-index: 0;
}

.left-panel::before {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
}

.left-panel::after {
    width: 150px;
    height: 150px;
    bottom: -30px;
    right: -30px;
    animation-delay: 1.5s;
}

.left-panel > * {
    position: relative; /* Ensure content is above pseudo-elements */
    z-index: 1;
}

.panel-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: bounceIn 1.2s ease-out; /* From animations.css */
}

.left-panel h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    animation: fadeInDown 1s ease-out; /* From animations.css */
}

.left-panel p {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.5;
    animation: fadeIn 1.2s ease-out;
}

.left-panel ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
    width: 80%;
}

.left-panel ul li {
    font-size: 1em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    opacity: 0; /* Will be animated with JS or CSS delay */
    animation: slideInLeft 0.8s ease-out forwards;
}
.left-panel ul li:nth-child(1) { animation-delay: 0.2s; }
.left-panel ul li:nth-child(2) { animation-delay: 0.4s; }
.left-panel ul li:nth-child(3) { animation-delay: 0.6s; }
.left-panel ul li:nth-child(4) { animation-delay: 0.8s; }


.left-panel ul li .fas {
    margin-right: 10px;
    color: #f1c40f; /* Yellow checkmark */
    font-size: 1.2em;
}

.cta-text {
    font-size: 1.2em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    animation: scaleIn 1s ease-out;
}

.testimonial {
    font-style: italic;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px dashed rgba(255, 255, 255, 0.4);
    padding-top: 20px;
    margin-top: 20px;
}
/* Styling for the Left Panel on Register Page */
.left-panel {
    width: 35%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 40px; /* Base padding */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Default center alignment for low-res/mid-res if not overridden */
    align-items: center;
    text-align: center;
    border-radius: 10px 0 0 10px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.left-panel .panel-content {
    /* This new wrapper helps control content flow inside the panel */
    width: 100%; /* Ensure it takes full width of the panel's content area */
    /* Other styles like animations can be applied here */
}

/* Pagination Styles */
.pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    font-size: 0.9em;
    color: #666;
}

.pagination {
    margin: 0;
    display: flex;
    list-style: none;
    padding: 0;
}

.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-link {
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Payments Due Section Styles */
.overview-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.overview-cards .card {
    flex: 1;
    min-width: 250px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-cards .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.overview-cards .card-body {
    padding: 20px;
}

.overview-cards .card-title {
    color: #495057;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.overview-cards .card-text {
    font-size: 1.8em;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 5px;
}

.overview-cards .card-text small {
    font-size: 0.8em;
    color: #6c757d;
}

/* Student Payment Status Section Styles */
.section-description {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.students-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.student-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.student-header {
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.student-header h3 {
    color: #495057;
    margin: 0 0 5px 0;
    font-size: 1.3em;
    font-weight: 600;
}

.parent-name {
    color: #6c757d;
    margin: 0;
    font-size: 0.9em;
}

.enrollments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.enrollment-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    background: #f8f9fa;
    transition: all 0.2s ease;
    position: relative;
}

.enrollment-item.paid {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #f8fff9, #f0fff4);
}

.enrollment-item.pending {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, #fffbf0, #fff8dc);
}

.enrollment-info h4 {
    color: #495057;
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.enrollment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.enrollment-details span {
    font-size: 0.85em;
    color: #6c757d;
    display: block;
}

.enrollment-details .balance-due {
    font-weight: 600;
    color: #dc3545;
}

.payment-status {
    position: absolute;
    top: 15px;
    right: 15px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge.paid {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.enrollment-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.enrollment-actions .btn {
    font-size: 0.8em;
    padding: 4px 8px;
}

.no-enrollments {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        align-items: center;
    }
    
    .overview-cards {
        flex-direction: column;
    }
    
    .overview-cards .card {
        min-width: auto;
    }
    
    .students-payment-grid {
        grid-template-columns: 1fr;
    }
    
    .enrollment-details {
        grid-template-columns: 1fr;
    }
    
    .enrollment-actions {
        flex-direction: column;
    }
    
    .payment-status {
        position: static;
        margin-bottom: 10px;
    }
}