/* 
    Netrika.Id - Deepin Style UI
    Brand: Netrika Adhinata Solusindo
    Aesthetic: Glassmorphism, Rounded Corners, Soft Shadows, Vibrant Gradients
*/

:root {
    --accent-color: #0078d4;
    --accent-gradient: linear-gradient(135deg, #0078d4 0%, #00bcf2 100%);
    --bg-color: #f3f3f3;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-primary: #323130;
    --text-secondary: #605e5c;
    --glass-blur: blur(20px);
    --border-radius: 12px;
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: radial-gradient(circle at top right, #e0eafc, #cfdef3);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo a {
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

.hero {
    padding: 5rem 5% 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.4);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 5%;
}

.card {
    padding: 2.5rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 800;
}

footer {
    padding: 3rem 5%;
    text-align: center;
    background: rgba(0, 0, 0, 0.05);
    margin-top: 4rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    background: rgba(0, 120, 212, 0.1);
    color: var(--accent-color);
    font-weight: 700;
}

.badge-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.3px;
}

.badge-success {
    background: #2ecc71;
}

.badge-pending {
    background: #f39c12;
}

.badge-failure {
    background: #e74c3c;
}

.badge-neutral {
    background: #64748b;
}

.badge-soft {
    background: #eee;
    color: #333;
}

.badge-template-ok {
    background: #2ecc71;
    color: #fff;
}

.badge-template-missing {
    background: #e74c3c;
    color: #fff;
}

.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table-wrap.is-scroll-y {
    max-height: 520px;
    overflow-y: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table thead th {
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-table-zebra tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.45);
}

.admin-table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(250, 253, 255, 0.98);
    backdrop-filter: blur(8px);
}

.desktop-only {
    display: block;
}

.mobile-login-only {
    display: none !important;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
        gap: 1.5rem;
        position: sticky;
        top: 0;
    }

    .nav-toggle {
        display: block !important;
        position: absolute;
        right: 1.5rem;
        top: 1.2rem;
        cursor: pointer;
        z-index: 1001;
    }

    .logo {
        text-align: center;
        width: 100%;
        margin-top: 0.5rem;
    }

    nav {
        display: none;
        width: 100%;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
    }

    .auth-btn-container.desktop-only {
        display: none !important;
    }

    .mobile-login-only {
        display: block !important;
    }

    .hero h1 {
        font-size: 2.2rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .grid {
        grid-template-columns: 1fr !important;
        padding: 1rem 5% !important;
    }

    div[style*="display: grid"],
    form[style*="display: grid"] {
        grid-template-columns: 1fr !important;
    }

    div[style*="grid-column: span 2"],
    form div[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    .glass-panel {
        padding: 1.5rem !important;
    }
}

/* Navbar Toggle UI */
.nav-toggle {
    display: none;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}
