* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cf-dark: #000000;
    --cf-darker: #0a0a0a;
    --cf-light: #ffffff;
    --cf-border: rgba(255, 255, 255, 0.1);
    --cf-text-primary: #ffffff;
    --cf-text-secondary: rgba(255, 255, 255, 0.7);
    --cf-text-tertiary: rgba(255, 255, 255, 0.5);
    --cf-card-bg: rgba(255, 255, 255, 0.05);
    --cf-hover: rgba(255, 255, 255, 0.1);
    --cf-accent: #ffffff;
    --cf-accent-hover: rgba(255, 255, 255, 0.8);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    background: #000000;
    background: linear-gradient(135deg, var(--cf-darker) 0%, var(--cf-dark) 50%, #1a1a1a 100%);
    background-attachment: fixed;
    color: var(--cf-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    animation: backgroundShift 20s ease infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Floating particles animation */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 200%;
    animation: particleFloat 30s ease infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes particleFloat {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.navbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--cf-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar:hover {
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.2em;
    vertical-align: middle;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cf-text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--cf-text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cf-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--cf-text-primary);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard h2, .page-header h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cf-text-primary);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--cf-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--cf-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 48px rgba(255, 255, 255, 0.1);
}

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--cf-text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cf-text-primary);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.section {
    background: var(--cf-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--cf-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.section:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 48px rgba(255, 255, 255, 0.05);
}

.section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cf-text-primary);
}

.servers-list, .servers-grid {
    display: grid;
    gap: 1.5rem;
}

.servers-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.server-card {
    background: var(--cf-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--cf-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--cf-accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.server-card:hover::before {
    transform: scaleY(1);
}

.server-card:hover {
    transform: translateY(-5px) translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 48px rgba(255, 255, 255, 0.1);
}

.server-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cf-text-primary);
}

.server-card .server-info {
    color: var(--cf-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.server-card .server-info p {
    margin-bottom: 0.5rem;
}

.server-card .server-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-size: 0.9375rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--cf-accent);
    color: var(--cf-dark);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: var(--cf-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-danger {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cf-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cf-text-primary);
    border: 1px solid var(--cf-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-warning {
    background: rgba(255, 255, 255, 0.15);
    color: var(--cf-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-warning:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.auth-card {
    background: var(--cf-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3.5rem;
    border-radius: 24px;
    border: 1px solid var(--cf-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.6s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-card > * {
    position: relative;
    z-index: 1;
}

.auth-card h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--cf-text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--cf-text-secondary);
    font-weight: 500;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--cf-text-primary);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cf-border);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--cf-text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--cf-text-secondary);
}

/* Select dropdown styling for dark mode */
.form-group select {
    appearance: none;
    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='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    cursor: pointer;
}

/* Select with flag - use multiple background images */
.form-group select.has-flag {
    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='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E"),
        var(--flag-image, none);
    background-position: 
        right 1rem center,
        left 0.5rem center;
    background-size: 
        12px,
        20px;
    background-repeat: no-repeat, no-repeat;
    padding-left: 2.5rem;
}

.form-group select:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.form-group select option {
    background: var(--cf-dark);
    color: var(--cf-text-primary);
    padding: 0.5rem;
}

/* Flag display in select dropdowns */
select[data-has-flags] {
    padding-left: 2.5rem;
}

select option {
    padding-left: 2.5rem;
    background-image: none;
}

select option[data-flag] {
    background-repeat: no-repeat;
    background-position: left 0.5rem center;
    background-size: 20px;
}

.auth-link {
    text-align: center;
    margin-top: 2rem;
    color: var(--cf-text-secondary);
    font-size: 0.9375rem;
}

.auth-link a {
    color: var(--cf-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link a:hover {
    color: var(--cf-accent-hover);
    text-decoration: underline;
}

.error-message {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cf-text-primary);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--cf-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--cf-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: modalSlideIn 0.3s ease;
    color: var(--cf-text-primary);
    margin: auto;
    /* Ensure modal is centered even when content is small */
    align-self: center;
}

.modal-content h2 {
    color: var(--cf-text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.modal-content h3 {
    color: var(--cf-text-primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.modal-content p {
    color: var(--cf-text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.modal-content strong {
    color: var(--cf-text-primary);
    font-weight: 600;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--cf-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: var(--cf-text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.status-critical {
    color: #ff4444;
    font-weight: 600;
}

.status-warning {
    color: #ffaa00;
    font-weight: 600;
}

.status-normal {
    color: #28a745;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulse 2s ease infinite;
}

.status-active,
.status-running {
    background: rgba(0, 217, 255, 0.2);
    color: #00d9ff;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.status-stopped,
.status-offline,
.status-shut_down {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.status-provisioning,
.status-booting,
.status-rebooting {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.status-suspended,
.status-blocked {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

/* Server Detail Page Styles */
.server-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--cf-card-bg);
    border: 1px solid var(--cf-border);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    background-color: #888888;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.info-card {
    background: var(--cf-card-bg);
    border: 1px solid var(--cf-border);
    border-radius: 8px;
    padding: 1.5rem;
}

.server-metadata {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.server-metadata strong {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 0.5rem;
}

.warning-banner {
    background: rgba(255, 170, 0, 0.15);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: #ffaa00;
}

.ip-address {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.ssh-command {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ssh-command code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.copy-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

/* Server Menu (Hamburger Menu) */
.server-menu-container {
    position: relative;
}

.server-menu-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.server-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.server-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--cf-card-bg);
    border: 1px solid var(--cf-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    z-index: 100;
    overflow: hidden;
}

.server-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.server-menu a:last-child {
    border-bottom: none;
}

.server-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
}

.server-menu a[style*="color: #ff4444"]:hover {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
}

/* Admin specific */
.admin-section {
    background: var(--cf-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--cf-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.admin-section:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

table th,
table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--cf-text-primary);
}

table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--cf-text-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

table tbody tr {
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

table tbody tr:last-child td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table td {
    color: var(--cf-text-primary);
}

/* Loading animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--cf-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        background: #000000 !important;
        background: linear-gradient(135deg, #0a0a0a 0%, #000000 50%, #1a1a1a 100%) !important;
    }
    
    body::before,
    body::after {
        display: none !important;
    }
    
    .navbar {
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        width: 100%;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
    }

    .container {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .card {
        padding: 1.5rem;
        margin-bottom: 1rem;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.6) !important;
    }
    
    .admin-section {
        padding: 1.5rem;
        margin-bottom: 1rem;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.6) !important;
    }
    
    .stat-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.6) !important;
    }
    
    table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cf-darker);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
