/* 
 * Hostinger Custom Panel - Overhauled Premium "Powerful" UI 
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #8b5cf6;
    /* Electric Purple */
    --primary-light: #a78bfa;
    --primary-hover: #7c3aed;
    --accent-color: #d946ef;
    /* Magenta */
    --bg-body: #050508;
    --bg-card: #0e0e1a;
    --bg-sidebar: #0a0a12;
    --border-color: rgba(139, 92, 246, 0.15);
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --glass-bg: rgba(14, 14, 26, 0.7);
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-body);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Glassmorphism & Cards */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    transition: var(--transition);
}

.panel-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* DataTables Overrides */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: var(--text-muted) !important;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.dataTables_wrapper .dataTables_filter input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    color: white !important;
    padding: 8px 12px !important;
    margin-left: 10px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--text-muted) !important;
    border-radius: 8px !important;
    transition: var(--transition);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

table.dataTable {
    border-collapse: collapse !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

table.dataTable thead th {
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-muted) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    padding: 15px !important;
    border-bottom: 1px solid var(--border-color) !important;
}

table.dataTable tbody td {
    padding: 18px 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
}

table.dataTable.no-footer {
    border-bottom: none !important;
}

/* Sidebar & Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.05), transparent);
}

.logo-container {
    padding: 0 10px 40px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 8px 16px -4px rgba(139, 92, 246, 0.4);
    transition: var(--transition);
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-header .logo-icon {
    width: 72px;
    height: 72px;
    font-size: 2rem;
    margin: 0 auto 28px;
    transform: rotate(-3deg);
    box-shadow: 0 16px 32px -8px rgba(139, 92, 246, 0.5);
    border-radius: 20px;
}

.auth-card:hover .logo-icon {
    transform: rotate(0deg) scale(1.05);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 14px;
    margin-bottom: 6px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link i {
    width: 24px;
    font-size: 1.2rem;
    margin-right: 15px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-white);
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), transparent);
    color: var(--primary-light);
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

/* Status Badges */
.badge {
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 30px 15px;
    }

    .sidebar span,
    .logo-container h2 {
        display: none;
    }

    .main-content {
        margin-left: 80px;
    }

    .nav-link {
        justify-content: center;
        padding: 14px;
    }

    .nav-link i {
        margin-right: 0;
    }
}

/* Professional Auth / Login Overhaul */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050508;
    background-image:
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(217, 70, 239, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(217, 70, 239, 0.05) 0px, transparent 50%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.auth-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(14, 14, 26, 0.4);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 60px 48px;
    position: relative;
    z-index: 10;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 45px;
}

.auth-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.auth-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.login-input-group {
    position: relative;
    margin-bottom: 24px;
}

.login-input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
}

.login-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    height: 60px !important;
    border-radius: 16px !important;
    padding: 0 20px 0 52px !important;
    color: white !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.login-input:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15) !important;
    outline: none !important;
}

.login-input:focus+i {
    color: var(--primary-light);
}

.btn-auth {
    width: 100%;
    height: 60px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 15px 30px -8px rgba(139, 92, 246, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.6);
}

.btn-auth:active {
    transform: scale(0.98);
}

.auth-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.auth-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}