/* Directory Page Enhanced Styles */

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.navbar {
    background-color: #152644;
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #06A4DF;
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #152644 0%, #2a4d7a 100%);
    color: white;
    padding: 60px 0 60px;
    text-align: center;
    margin-top: 75px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="20" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Directory Section */
.directory-section {
    padding: 4rem 0;
    background: white;
    min-height: 80vh;
}

/* Directory Actions Bar - NEW */
.directory-actions-bar {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(21, 38, 68, 0.1);
}

/* Directory Controls */
.directory-controls {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(21, 38, 68, 0.1);
}

.search-container {
    margin-bottom: 2rem;
}

.search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 16px 60px 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-bar input:focus {
    outline: none;
    border-color: #152644;
    box-shadow: 0 0 0 4px rgba(21, 38, 68, 0.1), 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #152644, #2a4d7a);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: linear-gradient(135deg, #0f1a30, #1e3a5f);
    transform: translateY(-50%) scale(1.05);
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.fog {
    display: flex;
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #152644;
    font-size: 0.9rem;
}

.filter-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #152644;
    box-shadow: 0 0 0 3px rgba(21, 38, 68, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #152644, #2a4d7a);
    color: white;
    box-shadow: 0 4px 15px rgba(21, 38, 68, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f1a30, #1e3a5f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 38, 68, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #06A4DF, #0892c7);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 164, 223, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #0585b8, #0771a1);
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: #152644;
    border: 2px solid #152644;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.btn-outline:hover {
    background: #152644;
    color: white;
    transform: translateY(-2px);
}

.btn-export {
    background: linear-gradient(135deg, #28a745, #20903a);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-export:hover {
    background: linear-gradient(135deg, #20903a, #1a7a30);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-full-width {
    width: 100%;
}

.export-icon {
    font-size: 1.1rem;
}

/* Results Summary */
.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #06A4DF;
}

.results-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#resultsCount {
    font-size: 1.1rem;
    font-weight: 600;
    color: #152644;
}

.filter-status {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.view-options {
    display: flex;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 10px;
}

.view-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-btn:hover,
.view-btn.active {
    background: #152644;
    color: white;
    transform: translateY(-1px);
}

/* Directory Table */
.directory-table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.directory-table-wrapper {
    overflow-x: auto;
}

.directory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.directory-table thead {
    background: linear-gradient(135deg, #152644 0%, #2a4d7a 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.directory-table th {
    color: white;
    padding: 18px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    white-space: nowrap;
}

.directory-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.directory-table th.sortable:hover {
    background: rgba(255,255,255,0.1);
}

.sort-icon {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.directory-table th.sorted-asc .sort-icon::after {
    content: "↑";
    color: #06A4DF;
}

.directory-table th.sorted-desc .sort-icon::after {
    content: "↓";
    color: #06A4DF;
}

.directory-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.directory-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.directory-table tbody tr:last-child {
    border-bottom: none;
}

.directory-table td {
    padding: 16px;
    vertical-align: middle;
    color: #333;
}

.alumni-name {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.alumni-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #152644, #06A4DF);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(21, 38, 68, 0.3);
    flex-shrink: 0;
}

.name-details {
    display: flex;
    flex-direction: column;
}

.name-primary {
    font-weight: 600;
    color: #152644;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.name-secondary {
    color: #666;
    font-size: 0.85rem;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-active {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-active::before {
    content: "●";
    color: #28a745;
}

.status-inactive {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-inactive::before {
    content: "●";
    color: #dc3545;
}

.department-badge,
.school-badge {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #495057;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.school-badge {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border: 1px solid #b8daff;
}

/* Cards View */
.directory-cards-container {
    background: transparent;
}

.alumni-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.alumni-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
}

.alumni-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #06A4DF;
}

.alumni-card .alumni-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    border: 3px solid white;
    box-shadow: 0 4px 20px rgba(21, 38, 68, 0.2);
}

.alumni-card .name-primary {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.alumni-card .name-secondary {
    text-align: center;
    margin-bottom: 1rem;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.card-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.card-detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.card-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem;
    color: #666;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #152644;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #152644;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.pagination-info {
    color: #666;
    font-size: 0.95rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination button {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    background: white;
    color: #152644;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.pagination button:hover:not(:disabled) {
    background-color: #152644;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(21, 38, 68, 0.3);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination button.active {
    background: linear-gradient(135deg, #152644, #2a4d7a);
    color: white;
    border-color: #152644;
    box-shadow: 0 4px 15px rgba(21, 38, 68, 0.3);
}

.pagination span {
    color: #666;
    padding: 10px 8px;
    font-weight: 500;
}

/* Join CTA Section */
.join-cta {
    background: linear-gradient(135deg, #152644 0%, #2a4d7a 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.join-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="10" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    min-width: 180px;
}

.cta-actions .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-actions .btn-outline:hover {
    background: white;
    color: #152644;
}

/* Footer */
.footer {
    background-color: #152644;
    color: white;
    padding: 4rem 0 1.5rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section img {
    height: 45px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p,
.footer-section ul {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #06A4DF;
    transform: translateX(5px);
}

/* Bank Transfer Modal */
.bank-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

.bank-modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bank-modal-header {
    background: linear-gradient(135deg, #152644 0%, #2a4d7a 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
}

.bank-modal-close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bank-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.bank-modal-body {
    padding: 2rem;
}

.bank-info-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bank-alert {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 8px;
    color: #856404;
    font-size: 0.95rem;
}

.bank-alert strong {
    color: #664d03;
}

.bank-details-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.bank-details-card:hover {
    border-color: #06A4DF;
    box-shadow: 0 5px 15px rgba(6, 164, 223, 0.1);
}

.bank-details-card h4 {
    color: #152644;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #06A4DF;
    padding-bottom: 0.5rem;
}

.bank-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.bank-detail-item:last-child {
    border-bottom: none;
}

.bank-detail-item label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.bank-detail-item span {
    color: #152644;
    font-weight: 500;
}

.account-number {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: #152644;
    background: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

.btn-copy {
    background: #06A4DF;
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #0589c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(6, 164, 223, 0.3);
}

.payment-instructions {
    background: white;
    border: 2px solid #152644;
    border-radius: 12px;
    padding: 1.5rem;
}

.payment-instructions h4 {
    color: #152644;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.payment-instructions ol {
    margin: 0;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.payment-instructions li {
    color: #495057;
    margin-bottom: 0.5rem;
}

.payment-instructions strong {
    color: #152644;
}

.dues-amount-info {
    background: linear-gradient(135deg, #152644 0%, #2a4d7a 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
}

.dues-amount-info h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.amount-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.amount-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.amount-value {
    color: #FBFC19;
    font-size: 1.8rem;
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 2px solid #e9ecef;
}

.modal-actions .btn {
    min-width: 150px;
}

.copy-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    animation: slideInRight 0.3s ease;
    z-index: 4000;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Export Modal - NEW */
.export-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

.export-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
}

.export-modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20903a 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.export-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
}

.export-modal-close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.export-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.export-modal-body {
    padding: 2rem;
}

.export-info {
    text-align: center;
    margin-bottom: 2rem;
}

.export-info p {
    color: #495057;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.export-info strong {
    color: #152644;
    font-size: 1.2rem;
}

.export-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.export-option-btn {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.export-option-btn:hover {
    border-color: #28a745;
    background: #f8fdf9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.export-option-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.export-option-details h4 {
    color: #152644;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.export-option-details p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.export-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 8px;
}

.export-note p {
    color: #856404;
    font-size: 0.9rem;
    margin: 0;
}

.export-success,
.export-error {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
    z-index: 4000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.export-success {
    background: #28a745;
    color: white;
}

.export-error {
    background: #dc3545;
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .filter-controls {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #152644;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        padding: 1rem;
        display: block;
        margin: 0.5rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .directory-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .directory-actions-bar .btn {
        width: 100%;
    }

    .directory-controls {
        padding: 2rem;
    }

    .filter-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .results-summary {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }

    .directory-table-wrapper {
        font-size: 0.9rem;
    }

    .directory-table th,
    .directory-table td {
        padding: 12px 8px;
    }

    .alumni-name {
        min-width: 150px;
    }

    .alumni-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .name-primary {
        font-size: 0.9rem;
    }

    .alumni-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .pagination-container {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination {
        justify-content: center;
        gap: 0.25rem;
    }

    .pagination button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .bank-modal-content,
    .export-modal-content {
        width: 95%;
        margin: 2% auto;
    }

    .bank-modal-body,
    .export-modal-body {
        padding: 1.5rem;
    }

    .bank-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .btn-copy {
        margin-left: 0;
        width: 100%;
        margin-top: 0.5rem;
    }

    .amount-grid {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .directory-controls {
        padding: 1.5rem;
    }

    .search-bar input {
        padding: 14px 50px 14px 16px;
        font-size: 1rem;
    }

    .search-btn {
        width: 40px;
        height: 40px;
    }

    .directory-table th,
    .directory-table td {
        padding: 10px 6px;
        font-size: 0.8rem;
    }

    .alumni-name {
        min-width: 120px;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .name-details {
        align-items: center;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .directory-actions-bar,
    .directory-controls,
    .view-options,
    .pagination-container,
    .join-cta,
    .footer {
        display: none !important;
    }
    
    .page-header {
        margin-top: 0;
        padding: 2rem 0;
    }
    
    .directory-table {
        box-shadow: none;
    }
    
    .directory-table tbody tr:hover {
        background: transparent;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .alumni-card:hover,
    .directory-table tbody tr:hover {
        transform: none;
    }
}