/* app/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =========================================
   1. GLOBAL VARIABLES
   ========================================= */
:root {
    --primary-bg: #030614;
    --text-primary: #ffffff;
    --text-secondary: #a0aabf;
    --error-color: #ff4d4d;
    --success-color: #00cc66;

    --glass-bg: rgba(10, 15, 30, 0.35);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    --glass-blur: blur(18px);
    --glass-radius: 20px;

    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    background-color: var(--primary-bg);
}

body {
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

/* =========================================
   3. ANIMATED 
   ========================================= */
html::before,
html::after,
body::before,
body::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    mix-blend-mode: screen;
    opacity: 0.7;
}

/* Blob 1: Deep Purple */
html::before {
    width: 45vw;
    height: 45vw;
    background: rgba(88, 28, 135, 0.8);
    animation: orb1 15s infinite alternate ease-in-out;
}

/* Blob 2: Electric Blue */
html::after {
    width: 50vw;
    height: 50vw;
    background: rgba(29, 78, 216, 0.8);
    animation: orb2 18s infinite alternate-reverse ease-in-out;
}

/* Blob 3: Neon Magenta (Pink Terang) */
body::before {
    width: 40vw;
    height: 40vw;
    background: rgba(219, 39, 119, 0.7);
    animation: orb3 20s infinite alternate ease-in-out;
}

/* Blob 4: Cyan / Teal (Hijau Kebiruan) */
body::after {
    width: 35vw;
    height: 35vw;
    background: rgba(13, 148, 136, 0.7);
    animation: orb4 22s infinite alternate-reverse ease-in-out;
}

/* Keyframes untuk masing-masing Blob (Berputar di sekitar pusat) */
@keyframes orb1 {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) translate(-20%, -15%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) translate(15%, 20%) scale(0.9);
    }
}

@keyframes orb2 {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) translate(25%, 10%) scale(1.1);
    }

    100% {
        transform: translate(-50%, -50%) translate(-20%, -25%) scale(1.3);
    }
}

@keyframes orb3 {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) translate(-15%, 25%) scale(1.3);
    }

    100% {
        transform: translate(-50%, -50%) translate(20%, -10%) scale(0.85);
    }
}

@keyframes orb4 {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) translate(20%, -20%) scale(0.9);
    }

    100% {
        transform: translate(-50%, -50%) translate(-25%, 15%) scale(1.4);
    }
}

@media (max-width: 768px) {

    html::before,
    html::after,
    body::before,
    body::after {
        width: 80vw;
        height: 80vw;
    }
}

/* =========================================
   4. LIQUID GLASS UTILITIES
   ========================================= */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;

    position: relative;
    z-index: 10;

    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* =========================================
   5. FORM ELEMENTS
   ========================================= */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.glass-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.glass-input[type="number"]::-webkit-inner-spin-button,
.glass-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =========================================
   6. BUTTONS
   ========================================= */
.btn-glass {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-glass:active {
    transform: translateY(0);
}

/* =========================================
   7. LAYOUT UTILITIES
   ========================================= */
.center-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 10px;
}

.mt-4 {
    margin-top: 30px;
}

.mb-3 {
    margin-bottom: 20px;
}

.mb-4 {
    margin-bottom: 30px;
}

/* =========================================
   8. ANIMATIONS
   ========================================= */
@keyframes breathing {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.6));
    }

    100% {
        transform: scale(0.9);
        opacity: 0.8;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    }
}

.animate-breathing img {
    animation: breathing 4s ease-in-out infinite;
}

/* =========================================
   9. TABLES & LISTS
   ========================================= */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.glass-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    color: var(--text-primary);
}

.glass-table th,
.glass-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-table th {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-table tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Tombol Ikon Khusus */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Flex utilities */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}