* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.admin-list-container {
    width: 950px;
    max-width: 95vw;
    height: 750px;
    max-height: 90vh;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(168, 85, 247, 0.9) 100%);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.header-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    letter-spacing: 0.5px;
}

.tabs-container {
    display: flex;
    gap: 0;
    background: rgba(31, 41, 55, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
}

.tab-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: transparent;
    color: rgba(156, 163, 175, 0.9);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    border-radius: 12px;
}

.tab-btn svg {
    opacity: 0.7;
    transition: all 0.3s ease;
    stroke: currentColor;
}

.tab-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    color: rgba(196, 181, 253, 1);
    transform: translateY(-2px);
}

.tab-btn:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(168, 85, 247, 0.4) 100%);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab-btn.active svg {
    opacity: 1;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.8), transparent);
    border-radius: 2px;
    animation: expandWidth 0.4s ease;
}

@keyframes expandWidth {
    from { width: 0%; opacity: 0; }
    to { width: 80%; opacity: 1; }
}

.header-icon {
    color: #ffffff;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header-title {
    flex: 1;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.close-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.9);
    border-color: rgba(239, 68, 68, 0.6);
    transform: scale(1.05) rotate(90deg);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.search-container {
    padding: 20px 32px;
    background: rgba(31, 41, 55, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    background: rgba(17, 24, 39, 0.8);
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(156, 163, 175, 0.6)' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
}

.search-input::placeholder {
    color: rgba(156, 163, 175, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), inset 0 2px 8px rgba(0, 0, 0, 0.3);
    background-color: rgba(17, 24, 39, 0.95);
}

.admin-list {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    background: rgba(17, 24, 39, 0.5);
}

.admin-list::-webkit-scrollbar {
    width: 10px;
}

.admin-list::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.4);
    border-radius: 10px;
}

.admin-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.6) 0%, rgba(168, 85, 247, 0.6) 100%);
    border-radius: 10px;
    border: 2px solid rgba(31, 41, 55, 0.4);
}

.admin-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.8) 0%, rgba(168, 85, 247, 0.8) 100%);
}

.admin-item {
    background: rgba(31, 41, 55, 0.6);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    position: relative;
    overflow: hidden;
}

.admin-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.8) 0%, rgba(168, 85, 247, 0.8) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.admin-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-item:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.admin-item:hover::before {
    transform: scaleY(1);
}

.admin-item:hover::after {
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(168, 85, 247, 0.9) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.admin-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.admin-name {
    font-size: 18px;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.admin-rank {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.admin-lastlogin {
    font-size: 12px;
    color: rgba(156, 163, 175, 0.9);
    font-weight: 500;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(168, 85, 247, 0.9) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.action-btn.danger:hover {
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5);
}

.footer {
    background: rgba(31, 41, 55, 0.6);
    padding: 18px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.total-count {
    font-size: 14px;
    font-weight: 600;
    color: rgba(196, 181, 253, 1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    color: rgba(156, 163, 175, 0.8);
    font-size: 16px;
    font-weight: 500;
}

/* Rank Colors */
.rank-junior { 
    color: #10b981; 
    background: rgba(16, 185, 129, 0.15);
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.rank-general { 
    color: #34d399; 
    background: rgba(52, 211, 153, 0.15);
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.rank-senior { 
    color: #f59e0b; 
    background: rgba(245, 158, 11, 0.15);
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.rank-head { 
    color: #ef4444; 
    background: rgba(239, 68, 68, 0.15);
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.rank-lead { 
    color: #3b82f6; 
    background: rgba(59, 130, 246, 0.15);
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.rank-executive { 
    color: #8b5cf6; 
    background: rgba(139, 92, 246, 0.15);
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.rank-helper { 
    color: #06b6d4; 
    background: rgba(6, 182, 212, 0.15);
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    border: 1px solid rgba(6, 182, 212, 0.3);
}
.rank-advisor { 
    color: #14b8a6; 
    background: rgba(20, 184, 166, 0.15);
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

