* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #f4f6fb;
    height: 100vh;
    overflow: hidden;
}

/* Flash Messages */
.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 300px;
}

.flash-success {
    background: #4caf50;
}

.flash-error {
    background: #f44336;
}

.flash-info {
    background: #2196f3;
}

.flash-message button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* Login/Signup Pages */
.container {
    display: flex;
    height: 100vh;
}

.left-section {
    flex: 2;
    background: linear-gradient(rgba(75, 0, 130, 0.8), rgba(25, 25, 112, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23333" width="1200" height="800"/><path fill="%23666" d="M0 400h1200v200H0z"/><path fill="%23444" d="M200 300h800v100H200z"/><circle fill="%23555" cx="100" cy="100" r="50"/></svg>');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-overlay {
    text-align: center;
    color: white;
    z-index: 2;
}

.main-logo {
    width: 80px;
    height: 80px;
    background: #ff4444;
    border-radius: 15px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    font-size: 40px;
    font-weight: bold;
    color: white;
}

.main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.greeting {
    font-size: 18px;
    opacity: 0.9;
}

.footer-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 12px;
    opacity: 0.7;
}

.right-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 20px;
}

.form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-logo {
    width: 50px;
    height: 50px;
    background: #8b5cf6;
    border-radius: 10px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.form-header h2 {
    font-size: 28px;
    margin-bottom: 5px;
    color: #333;
}

.form-header p {
    color: #666;
    font-size: 14px;
}

.info-box {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #1976d2;
}

.info-box i {
    margin-right: 8px;
}

.logout-message {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #1976d2;
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #1976d2;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b5cf6;
    z-index: 2;
}

.dropdown-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b5cf6;
    cursor: pointer;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.login-btn, .signup-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.login-btn:hover, .signup-btn:hover {
    transform: translateY(-2px);
}

.signup-link, .login-link {
    text-align: center;
    margin-bottom: 20px;
}

.signup-link a, .login-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: bold;
}

.separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.separator span {
    background: white;
    padding: 0 15px;
    color: #666;
}

.google-btn {
    width: 100%;
    padding: 15px;
    background: white;
    color: #db4437;
    border: 2px solid #db4437;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.google-btn:hover {
    background: #db4437;
    color: white;
}

/* Dashboard Styles - Pixel Perfect Match */
.dashboard-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #f4f6fb;
}

/* Header Navigation */
.main-header {
    background: #fff;
    box-shadow: 0 2px 16px rgba(80,80,160,0.07);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    border: 1px solid rgba(118,75,162,0.1);
}

.logo .logo-icon {
    font-size: 28px;
    font-weight: bold;
    color: #764ba2;
}

.app-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    letter-spacing: 1px;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #764ba2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.menu-icon {
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

/* Navigation Menu - Centered */
.main-nav {
    background: #fff;
    border-bottom: 1px solid #e1e5e9;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    margin: 0 0.3rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #764ba2;
    font-size: 1rem;
    position: relative;
    text-decoration: none;
}

.nav-item:hover {
    background: #f3e9ff;
    color: #4b2e83;
    transform: translateY(-1px);
}

.nav-item.active {
    background: #f3e9ff;
    color: #4b2e83;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.2);
}

.nav-item i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.nav-item span {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.nav-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: #f4f6fb;
}

.content-header {
    margin-bottom: 2rem;
}

.content-header h2 {
    font-size: 2rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}

.content-header i {
    color: #764ba2;
    font-size: 1.3rem;
}

/* Form Section */
.form-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(118, 75, 162, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section .input-group {
    position: relative;
    margin-bottom: 0;
}

.form-section .input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #764ba2;
    font-size: 1.1rem;
    z-index: 2;
}

.form-section .input-group input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-section .input-group input:focus {
    outline: none;
    border-color: #764ba2;
    background: white;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.add-btn {
    background: linear-gradient(135deg, #764ba2, #667eea);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
}

/* Table Section */
.table-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(118, 75, 162, 0.1);
}

.table-section h3 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}

.table-section h3 i {
    color: #764ba2;
    font-size: 1.2rem;
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.locations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
}

.locations-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 16px 12px;
    text-align: left;
    border-bottom: 2px solid #e1e5e9;
    white-space: nowrap;
    font-size: 13px;
}

.locations-table th i {
    color: #764ba2;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.locations-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e1e5e9;
    color: #555;
    font-size: 14px;
}

.locations-table tbody tr:hover {
    background: #f8f9fa;
}

/* Footer */
.main-footer {
    background: #fff;
    border-top: 1px solid #e1e5e9;
    padding: 1.5rem 2rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Colleges Page Specific Styles */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.import-btn {
    background: linear-gradient(135deg, #764ba2, #667eea);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.import-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
}

.import-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 10px 18px;
    background: #f8f9fa;
    border-radius: 25px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    border: 1px solid #e1e5e9;
}

.stat-item i {
    color: #764ba2;
    font-size: 1.1rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 300px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #764ba2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.table-controls {
    display: flex;
    gap: 1rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 15px;
    color: #764ba2;
    z-index: 2;
    font-size: 1rem;
}

.search-box input {
    padding: 12px 15px 12px 40px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 14px;
    width: 280px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.search-box input:focus {
    outline: none;
    border-color: #764ba2;
    background: white;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.colleges-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.colleges-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 18px 15px;
    text-align: left;
    border-bottom: 2px solid #e1e5e9;
    white-space: nowrap;
    font-size: 13px;
}

.colleges-table th i {
    color: #764ba2;
    margin-right: 0.6rem;
    font-size: 1rem;
}

.colleges-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #e1e5e9;
    color: #555;
    vertical-align: middle;
    font-size: 14px;
}

.colleges-table tbody tr:hover {
    background: #f8f9fa;
}

.member-code {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.institution-info strong {
    color: #333;
    font-size: 15px;
    line-height: 1.4;
}

.year-badge {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.contact-link {
    color: #1976d2;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.3s;
    font-weight: 500;
}

.contact-link:hover {
    color: #0d47a1;
}

.no-data {
    color: #999;
    font-style: italic;
}

.date-info {
    color: #666;
    font-size: 13px;
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-header {
        padding: 0.8rem 1rem;
    }
    
    .main-nav {
        padding: 0 1rem;
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item {
        padding: 0.8rem;
        margin: 0 0.2rem;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-section, .table-section {
        padding: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .colleges-table {
        font-size: 12px;
    }
    
    .colleges-table th,
    .colleges-table td {
        padding: 12px 8px;
    }
}

@media (max-width: 600px) {
    .main-header {
        padding: 0.6rem 0.8rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
        margin-right: 0.8rem;
    }
    
    .logo .logo-icon {
        font-size: 22px;
    }
    
    .app-title {
        font-size: 1.1rem;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .colleges-table th,
    .colleges-table td {
        padding: 10px 6px;
    }
    
    .colleges-table th:nth-child(6),
    .colleges-table td:nth-child(6) {
        display: none;
    }
    
    .form-section, .table-section {
        padding: 1.5rem;
    }
}

/* IN Data (NRLM) Page Specific Styles */
.download-buttons {
    display: flex;
    gap: 0.8rem;
}

.download-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.csv-btn {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.csv-btn:hover {
    background: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
}

.excel-btn {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.excel-btn:hover {
    background: #0056b3;
    border-color: #004085;
    transform: translateY(-1px);
}

.nrlm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.nrlm-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 16px 12px;
    text-align: left;
    border-bottom: 2px solid #e1e5e9;
    white-space: nowrap;
    font-size: 12px;
}

.nrlm-table th i {
    color: #764ba2;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.nrlm-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e1e5e9;
    color: #555;
    vertical-align: middle;
    font-size: 13px;
}

.nrlm-table tbody tr:hover {
    background: #f8f9fa;
}

.state-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.shg-name {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

/* Responsive adjustments for IN Data page */
@media (max-width: 1200px) {
    .nrlm-table th:nth-child(9),
    .nrlm-table td:nth-child(9) {
        display: none;
    }
}

@media (max-width: 992px) {
    .nrlm-table th:nth-child(8),
    .nrlm-table td:nth-child(8) {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .download-buttons {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .stats {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .nrlm-table {
        font-size: 11px;
    }
    
    .nrlm-table th,
    .nrlm-table td {
        padding: 10px 6px;
    }
    
    .nrlm-table th:nth-child(7),
    .nrlm-table td:nth-child(7) {
        display: none;
    }
}

@media (max-width: 600px) {
    .nrlm-table th:nth-child(6),
    .nrlm-table td:nth-child(6) {
        display: none;
    }
    
    .nrlm-table th:nth-child(5),
    .nrlm-table td:nth-child(5) {
        display: none;
    }
}

/* IN Data Page Specific Styles */
.location-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #764ba2;
    font-size: 16px;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 15px;
    background: #fafafa;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    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='%23764ba2' 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 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-select:focus {
    outline: none;
    border-color: #764ba2;
    background: white;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.form-select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

.form-select:disabled:hover {
    border-color: #ddd;
}

.fetch-btn {
    background: linear-gradient(135deg, #764ba2, #667eea);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
    margin-top: 1.5rem;
    width: 100%;
}

.fetch-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
}

.fetch-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

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

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #764ba2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.loading-content small {
    color: #666;
    font-size: 14px;
}

/* Results Section */
.results-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(118, 75, 162, 0.1);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.table-header h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.table-header h3 i {
    color: #764ba2;
    font-size: 1.2rem;
}

.table-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #999;
    font-size: 14px;
}

.search-box input {
    padding: 10px 12px 10px 35px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

/* Table Styling */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.nrlm-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.nrlm-table th {
    background: linear-gradient(135deg, #764ba2, #667eea);
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border: none;
}

.nrlm-table th i {
    margin-right: 8px;
    font-size: 16px;
}

.nrlm-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.nrlm-table tr:hover {
    background: #f8f9ff;
}

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

.shg-name {
    background: #e8f4fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.member-code {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: monospace;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.empty-state p {
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .table-container {
        font-size: 12px;
    }
    
    .nrlm-table th,
    .nrlm-table td {
        padding: 10px 8px;
    }
}

/* Navigation Menu Improvements */
.nav-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 0;
}

.nav-item:hover {
    background: rgba(118, 75, 162, 0.1);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(135deg, #764ba2, #667eea);
    color: white;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.nav-item.active a {
    color: white !important;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-item a:hover {
    color: #764ba2;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
}

.download-btn {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.csv-btn {
    background: #4caf50;
    color: white;
}

.csv-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.excel-btn {
    background: #2196f3;
    color: white;
}

.excel-btn:hover {
    background: #1976d2;
    transform: translateY(-2px);
}

.stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 14px;
}

.stat-item i {
    color: #764ba2;
}

/* Additional Interactive Improvements */
.form-select:focus {
    transform: scale(1.02);
}

.form-select option {
    padding: 8px 12px;
    background: white;
    color: #333;
}

.form-select option:hover {
    background: #f0f0f0;
}

/* Button Hover Effects */
.fetch-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Loading States */
.form-select.loading {
    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='%23764ba2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='10'%3e%3c/circle%3e%3cpath d='M12 6v6l4 2'%3e%3c/path%3e%3c/svg%3e");
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Success States */
.form-select.success {
    border-color: #4caf50;
    background-color: #f8fff8;
}

.form-select.error {
    border-color: #f44336;
    background-color: #fff8f8;
}

/* Tooltip for disabled states */
.form-group {
    position: relative;
}

.form-group::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 0;
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.form-group:hover::after {
    opacity: 1;
}

/* Improved Navigation */
.nav-item {
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-item:hover::before {
    left: 100%;
}

/* Enhanced Form Layout */
.form-section h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f0f0f0;
}

.form-section h3 i {
    color: #764ba2;
    font-size: 1.2rem;
}

/* Better Visual Hierarchy */
.content-header h2 {
    color: #333;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.content-header h2 i {
    color: #764ba2;
    font-size: 1.4rem;
}

/* Improved Stats Display */
.stats .stat-item {
    background: #f8f9ff;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.stats .stat-item i {
    color: #764ba2;
    font-size: 16px;
}

/* Better Button Styling */
.download-btn {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.download-btn:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Enhanced Table Styling */
.nrlm-table {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nrlm-table th {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.nrlm-table td {
    transition: background-color 0.2s ease;
}

/* Better Empty State */
.empty-state {
    background: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 12px;
    margin: 2rem 0;
}

.empty-state i {
    color: #764ba2;
    opacity: 0.5;
}

/* Responsive Improvements */
@media (max-width: 1024px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .download-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .form-section {
        padding: 1.5rem;
    }
    
    .content-header h2 {
        font-size: 1.4rem;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .search-box input {
        width: 100%;
        max-width: 300px;
    }
}

/* Accessibility Improvements */
.form-select:focus,
.fetch-btn:focus,
.download-btn:focus {
    outline: 2px solid #764ba2;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .nav-item,
    .header-actions,
    .loading-overlay {
        display: none !important;
    }
    
    .form-section,
    .table-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Reduced Navigation Menu Size */
.main-nav {
    padding: 0.5rem 0;
}

.nav-list {
    gap: 0.3rem;
}

.nav-item {
    margin: 1px 0;
    border-radius: 6px;
}

.nav-item a {
    padding: 8px 12px;
    font-size: 13px;
    gap: 0.6rem;
}

.nav-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.nav-item span {
    font-size: 13px;
    font-weight: 500;
}

/* Reduce header size */
.main-header {
    padding: 0.8rem 1.5rem;
}

.header-left {
    gap: 0.8rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
}

.app-title {
    font-size: 1.4rem;
}

/* Reduce content header size */
.content-header {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.content-header h2 {
    font-size: 1.3rem;
    gap: 0.6rem;
}

.content-header h2 i {
    font-size: 1.1rem;
}

/* Reduce form section padding */
.form-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    gap: 0.6rem;
}

.form-section h3 i {
    font-size: 1rem;
}

/* Reduce table header size */
.table-header {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
}

.table-header h3 {
    font-size: 1.2rem;
    gap: 0.6rem;
}

.table-header h3 i {
    font-size: 1rem;
}

/* Reduce button sizes */
.fetch-btn, .download-btn {
    padding: 10px 16px;
    font-size: 13px;
    gap: 0.6rem;
}

.fetch-btn i, .download-btn i {
    font-size: 14px;
}

/* Reduce form element sizes */
.form-select {
    padding: 10px 14px;
    font-size: 13px;
    padding-right: 35px;
}

.form-group label {
    font-size: 13px;
    gap: 0.4rem;
}

.form-group label i {
    font-size: 14px;
}

/* Reduce stats size */
.stats .stat-item {
    padding: 6px 10px;
    font-size: 13px;
    gap: 0.4rem;
}

.stats .stat-item i {
    font-size: 14px;
}

/* Reduce search box size */
.search-box input {
    padding: 8px 10px 8px 30px;
    font-size: 13px;
    width: 200px;
}

.search-box i {
    left: 10px;
    font-size: 12px;
}

/* Reduce table cell padding */
.nrlm-table th,
.nrlm-table td {
    padding: 10px 8px;
    font-size: 13px;
}

.nrlm-table th {
    font-size: 12px;
}

.nrlm-table th i {
    font-size: 14px;
    margin-right: 6px;
}

/* Reduce user info size */
.user-info {
    gap: 1rem;
}

.welcome-text {
    font-size: 13px;
}

.logout-btn {
    padding: 6px 12px;
    font-size: 12px;
    gap: 0.4rem;
}

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

.user-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-item a {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .nav-item i {
        font-size: 12px;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .search-box input {
        width: 100%;
        max-width: 250px;
    }
}
