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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Starfield Canvas */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(to bottom, #000000 0%, #0a0520 50%, #1a0933 100%);
}

/* Login Section */
.section {
    display: none;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.section.active {
    display: flex;
}

.container {
    width: 100%;
    max-width: 500px;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.8),
                 0 0 40px rgba(102, 126, 234, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.8),
                     0 0 40px rgba(102, 126, 234, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(102, 126, 234, 1),
                     0 0 60px rgba(102, 126, 234, 0.8);
    }
}

.logo h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 10px;
    background: linear-gradient(to right, #667eea, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
    letter-spacing: 4px;
    color: #a855f7;
}

.form-container {
    background: rgba(15, 15, 35, 0.85);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
}

.form-container h2 {
    color: white;
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #a0a0ff;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Dashboard Section */
.dashboard-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 36px;
    margin-bottom: 5px;
    background: linear-gradient(to right, #667eea, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logout-btn {
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.2);
    color: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-container {
    margin-bottom: 20px;
}

.search-container input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    background: rgba(15, 15, 35, 0.6);
    color: white;
    font-size: 16px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-container input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(15, 15, 35, 0.8);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.tab {
    flex: 1;
    padding: 15px;
    background: rgba(15, 15, 35, 0.6);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: white;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.tab:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    font-size: 14px;
    margin-left: 8px;
}

.tab.active .badge {
    background: rgba(255, 255, 255, 0.3);
}

.tab-content {
    background: rgba(15, 15, 35, 0.85);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 20px;
    min-height: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.loading, .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0a0ff;
    font-size: 18px;
}

.member-card {
    background: rgba(30, 30, 60, 0.6);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-left: 3px solid #667eea;
    transition: all 0.3s;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.member-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    background: rgba(40, 40, 80, 0.7);
}

.member-card.pending {
    border-left-color: #ffa500;
    background: rgba(60, 40, 0, 0.3);
}

.member-card.active {
    border-left-color: #4caf50;
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.member-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.member-status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.member-status.pending {
    background: #ffa500;
    color: white;
}

.member-status.active {
    background: #4caf50;
    color: white;
}

.member-status.inactive {
    background: #666;
    color: white;
}

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

.detail-item {
    font-size: 11px;
    color: #b0b0ff;
    line-height: 1.4;
}

.detail-label {
    font-weight: 600;
    color: #d0d0ff;
}

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

.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 11px;
    transition: all 0.3s;
}

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

.btn-approve:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-reject {
    background: #f44336;
    color: white;
}

.btn-reject:hover {
    background: #da190b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

.btn-deactivate {
    background: #ff9800;
    color: white;
}

.btn-deactivate:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

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

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(244, 67, 54, 0.5);
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .tabs {
        flex-direction: column;
    }

    .member-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .member-details {
        grid-template-columns: 1fr;
    }

    .logo h1 {
        font-size: 36px;
    }
}
