/* Student Management Specific Styles */

/* Warning Stat Card */
.stat-card.warning .stat-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

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

/* Students Section */
.students-section {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-top: 30px;
}

/* Table Container */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Students Table */
.students-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.students-table thead {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.students-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.students-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.students-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
}

.students-table td {
    padding: 16px;
    font-size: 14px;
    color: var(--text);
}

/* Student Photo */
.student-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.student-photo:hover {
    transform: scale(1.5);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Badges */
.seat-badge, .plan-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.seat-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.no-seat {
    color: #94a3b8;
    font-size: 12px;
    font-style: italic;
}

.plan-badge {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary);
}

.plan-badge.daily { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.plan-badge.weekly { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.plan-badge.monthly { background: rgba(102, 126, 234, 0.15); color: #667eea; }
.plan-badge.quarterly { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.plan-badge.yearly { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

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

.btn-icon-small.edit {
    color: var(--info);
}

.btn-icon-small.edit:hover {
    background: var(--info);
    color: #fff;
}

.btn-icon-small.delete {
    color: var(--danger);
}

.btn-icon-small.delete:hover {
    background: var(--danger);
    color: #fff;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    padding: 0 8px;
    color: var(--text);
    font-weight: 600;
}

/* Modal Large */
.modal-large {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Enhanced Modal Header */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.modal-header h3 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h3 i {
    font-size: 28px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Enhanced Modal Body */
.modal-body {
    padding: 30px;
    background: #f8f9ff;
}

/* Form Grid Enhancement */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

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

/* Form Grid */
.form-grid {
    gap: 30px;
}

/* Form Section - Modern Card Design */
.form-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 30px;
    border-radius: 16px;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.form-section:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.form-section:hover::before {
    transform: scaleX(1);
}

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

/* Section Headers with Icons */
.form-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    position: relative;
}

.form-section h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.form-section h4 i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Form Groups - Enhanced Spacing */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Modern Input Fields */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #2d3748;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.form-input:hover {
    border-color: #cbd5e0;
}

.form-input::placeholder {
    color: #a0aec0;
    font-size: 14px;
}

/* Select Dropdown Enhancement */
select.form-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
    padding-right: 45px;
    appearance: none;
}

select.form-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23764ba2' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
}

/* Textarea Enhancement */
textarea.form-input {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Readonly Fields */
.form-input[readonly] {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #718096;
}

/* File Input Styling */
input[type="file"].form-input {
    padding: 12px;
    cursor: pointer;
    border-style: dashed;
}

input[type="file"].form-input:hover {
    border-color: #667eea;
    background: #f7fafc;
}

/* Photo Preview */
.photo-preview {
    margin-top: 15px;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
}

/* Enhanced Modal Footer */
.modal-footer {
    padding: 25px 30px;
    background: white;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    border-radius: 0 0 16px 16px;
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.modal-footer .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modal-footer .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.modal-footer .btn-primary:active {
    transform: translateY(0);
}

.modal-footer .btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modal-footer .btn-secondary:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Required Field Indicator */
.form-group label:has(+ input[required])::after,
.form-group label:has(+ select[required])::after {
    content: '*';
    color: #f56565;
    margin-left: 4px;
    font-weight: 700;
}

/* Student Details Grid */
.student-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.detail-section {
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--border);
}

.detail-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.detail-section h4 i {
    color: var(--primary);
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

/* Student Header */
.student-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 12px;
    border: 2px solid var(--border);
}

.student-photo-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.student-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.student-id {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.status-badge.large {
    padding: 8px 16px;
    font-size: 14px;
}

/* Detail Items */
.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .label {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.detail-item .value {
    font-size: 14px;
    color: var(--dark);
    text-align: right;
}

.notes-text {
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .student-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .students-table {
        font-size: 12px;
    }
    
    .students-table th,
    .students-table td {
        padding: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .student-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== QR SUCCESS MODAL STYLES ==================== */

.qr-modal .modal-header h3 {
    color: var(--success);
}

.qr-success-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.student-info-summary {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    border-radius: 16px;
    border: 2px solid var(--primary);
}

.student-photo-display {
    flex-shrink: 0;
}

.student-photo-display img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.student-details-summary h4 {
    color: var(--dark);
    font-size: 22px;
    margin: 0 0 10px 0;
}

.student-details-summary p {
    margin: 6px 0;
    color: var(--text);
    font-size: 14px;
}

.student-id-display {
    color: var(--primary);
    font-weight: 600;
    font-size: 16px !important;
}

.qr-code-section {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 16px;
    border: 2px dashed var(--primary);
}

.qr-code-section h4 {
    color: var(--primary);
    font-size: 20px;
    margin: 0 0 10px 0;
}

.qr-description {
    color: var(--text);
    font-size: 14px;
    margin-bottom: 25px;
}

.qr-display-container {
    display: flex;
    justify-content: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    margin-bottom: 25px;
}

.qr-code-generated {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 3px solid var(--primary);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.qr-actions-bar {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.qr-actions-bar button {
    min-width: 150px;
}

.qr-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    text-align: left;
}

.qr-note i {
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.qr-note p {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .student-info-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .qr-actions-bar {
        flex-direction: column;
    }
    
    .qr-actions-bar button {
        width: 100%;
    }
}

/* ==================== QR IN STUDENT DETAILS MODAL ==================== */

.qr-details-section {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.qr-display-small {
    flex-shrink: 0;
}

.qr-display-small #studentDetailsQRCode {
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    display: inline-block;
}

.qr-info-text {
    flex: 1;
}

.qr-info-text p {
    margin: 8px 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

.qr-info-text strong {
    color: var(--dark);
}

.qr-actions-inline {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-sm i {
    font-size: 12px;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-sm:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .qr-details-section {
        flex-direction: column;
        text-align: center;
    }
    
    .qr-actions-inline {
        flex-direction: column;
        width: 100%;
    }
    
    .qr-actions-inline .btn-sm {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== PAYMENT MODAL STYLES ==================== */

.modal-medium {
    max-width: 600px;
    width: 95%;
}

.payment-student-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    margin-bottom: 25px;
}

.payment-student-info img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.payment-student-info h4 {
    font-size: 20px;
    color: #2d3748;
    margin: 0 0 5px 0;
}

.payment-student-info p {
    color: #667eea;
    font-weight: 600;
    margin: 0;
}

/* Payment Button in Action Buttons */
.btn-icon-small.payment {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-icon-small.payment:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Payment History Display */
.payment-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.payment-item {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-left: 4px solid #10b981;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.payment-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-info strong {
    font-size: 20px;
    color: #10b981;
    font-weight: 700;
}

.payment-method {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.payment-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    font-size: 14px;
    color: #64748b;
}

.receipt-no {
    color: #667eea;
    font-weight: 600;
    font-size: 12px;
}

/* Payment Info Section */
.payment-info-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.payment-summary h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-summary h4 i {
    color: #667eea;
    font-size: 18px;
}

.payment-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.payment-summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.payment-summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.payment-summary-item .label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-summary-item .value {
    font-size: 16px;
    color: #1e293b;
    font-weight: 700;
}

.payment-summary-item.status-item {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px dashed rgba(102, 126, 234, 0.2);
}

.payment-summary-item.status-item .value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.payment-summary-item.status-item .value i {
    font-size: 18px;
}

/* Responsive Payment Summary */
@media (max-width: 768px) {
    .payment-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Payment Cleared Modal */
.payment-cleared-content .modal-body {
    padding: 30px;
}

.payment-cleared-banner {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #10b981;
}

.payment-cleared-banner .success-icon {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 15px;
    animation: successPulse 1.5s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.payment-cleared-banner h2 {
    color: #065f46;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.payment-cleared-banner p {
    color: #047857;
    font-size: 16px;
}

.payment-cleared-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.payment-cleared-summary h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.info-item .label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.info-item .value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}

.payment-cleared-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.payment-cleared-details h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.stat-item.success {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.stat-item.complete {
    border-color: #10b981;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.stat-item.complete .label {
    color: rgba(255, 255, 255, 0.9);
}

.stat-item.complete .value {
    color: white;
}

.stat-item .label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.stat-item .value {
    font-size: 20px;
    color: #1e293b;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.last-payment-info {
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.last-payment-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #475569;
}

.last-payment-info strong {
    color: #1e293b;
    font-weight: 600;
}

/* Responsive Payment Cleared Modal */
@media (max-width: 768px) {
    .info-grid,
    .payment-stats {
        grid-template-columns: 1fr;
    }
    
    .payment-cleared-banner .success-icon {
        font-size: 48px;
    }
    
    .payment-cleared-banner h2 {
        font-size: 22px;
    }
}

/* Payment Already Completed Modal (Done) */
.payment-done-content .modal-body {
    padding: 30px;
}

.payment-done-banner {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #10b981;
}

.payment-done-banner .done-icon {
    font-size: 72px;
    color: #10b981;
    margin-bottom: 15px;
    animation: doneBounce 2s ease-in-out infinite;
}

@keyframes doneBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.payment-done-banner h2 {
    color: #065f46;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.payment-done-banner p {
    color: #047857;
    font-size: 16px;
    line-height: 1.6;
}

.payment-done-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.payment-done-info h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-done-status {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.status-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.status-card.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
}

.status-card.amount {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
}

.status-card.remaining {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #10b981;
}

.status-card i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.status-card.completed i,
.status-card.amount i {
    color: white;
}

.status-card.remaining i {
    color: #10b981;
}

.status-details h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.status-card.completed .status-details h4,
.status-card.amount .status-details h4 {
    color: rgba(255, 255, 255, 0.9);
}

.status-card.remaining .status-details h4 {
    color: #047857;
}

.status-text {
    font-size: 18px;
    font-weight: 700;
}

.amount-text {
    font-size: 22px;
    font-weight: 800;
}

.remaining-text {
    font-size: 22px;
    font-weight: 800;
    color: #10b981;
}

.last-payment-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.last-payment-box h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #475569;
}

.payment-details strong {
    color: #1e293b;
    font-weight: 600;
    min-width: 100px;
    display: inline-block;
}

.done-message {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.done-message i {
    font-size: 24px;
    color: #3b82f6;
    flex-shrink: 0;
}

.done-message p {
    margin: 0;
    font-size: 14px;
    color: #1e40af;
    line-height: 1.6;
}

/* Responsive Payment Done Modal */
@media (max-width: 768px) {
    .payment-done-status {
        grid-template-columns: 1fr;
    }
    
    .payment-done-banner .done-icon {
        font-size: 56px;
    }
    
    .payment-done-banner h2 {
        font-size: 24px;
    }
}
