/* ============================================
   mimpi.pw - Custom Styles
   ============================================ */

* { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

body {
    background: var(--bs-body-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Gradient Button */
.btn-gradient {
    background: var(--gradient-primary);
    color: white !important;
    border: none;
    padding: 8px 20px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    color: white;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.hero p { font-size: 1.25rem; opacity: 0.95; }

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

[data-bs-theme="dark"] .card {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Stat Card */
.stat-card {
    padding: 1.5rem;
    border-radius: 1rem;
    color: white;
    position: relative;
    overflow: hidden;
}
.stat-card .stat-icon {
    position: absolute;
    right: 1rem;
    top: 1rem;
    opacity: 0.3;
    font-size: 4rem;
}
.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
}
.stat-card .stat-label {
    opacity: 0.9;
    font-size: 0.95rem;
}
.stat-bg-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.stat-bg-2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.stat-bg-3 { background: linear-gradient(135deg, #10b981, #14b8a6); }
.stat-bg-4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }

/* Form */
.form-control, .form-select {
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--bs-border-color);
}
.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95) !important;
}
[data-bs-theme="dark"] .navbar {
    background: rgba(33,37,41,0.95) !important;
}

/* Buttons */
.btn-primary {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Short URL Result */
.short-url-result {
    background: var(--bs-body-tertiary-bg);
    border: 2px dashed var(--bs-border-color);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
}
.short-url-result .url {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    word-break: break-all;
}

/* Table */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}
.table thead {
    background: var(--bs-body-tertiary-bg);
}

/* Badges */
.badge {
    padding: 0.4em 0.7em;
    font-weight: 500;
    border-radius: 0.4rem;
}

/* Avatar */
.avatar-lg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bs-primary);
}
.avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
}

/* QR Code container */
.qr-container {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    display: inline-block;
}

/* Sidebar Admin */
.sidebar {
    background: var(--bs-body-tertiary-bg);
    border-radius: 1rem;
    padding: 1rem;
    height: fit-content;
    position: sticky;
    top: 80px;
}
.sidebar .nav-link {
    color: var(--bs-body-color);
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}
.sidebar .nav-link:hover {
    background: var(--bs-body-bg);
}
.sidebar .nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .stat-card .stat-value { font-size: 2rem; }
}

/* Copy button feedback */
.btn-copy.copied {
    background: #10b981 !important;
    color: white !important;
}

/* Loading spinner */
.spinner-mini {
    width: 1rem;
    height: 1rem;
    border-width: 0.15rem;
}
