/* ========================================
   MetaRent - Custom Bootstrap 5 Styles
   Brand Colors: Purple (#7c3aed) & Cyan (#06b6d4)
======================================== */

:root {
    --brand-50: #f5f3ff;
    --brand-100: #ede9fe;
    --brand-200: #ddd6fe;
    --brand-500: #8b5cf6;
    --brand-600: #7c3aed;
    --brand-700: #6d28d9;
    --brand-800: #5b21b6;
    --brand-900: #4c1d95;
    --cyan-500: #06b6d4;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--brand-500); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-700); }

/* ========================================
   CUSTOM UTILITIES
======================================== */
.bg-brand { background-color: var(--brand-600) !important; }
.bg-brand-light { background-color: var(--brand-50) !important; }
.bg-brand-dark { background-color: var(--brand-900) !important; }
.text-brand { color: var(--brand-600) !important; }
.border-brand { border-color: var(--brand-600) !important; }

.btn-brand {
    background-color: var(--brand-600);
    border-color: var(--brand-600);
    color: white;
}
.btn-brand:hover {
    background-color: var(--brand-700);
    border-color: var(--brand-700);
    color: white;
}
.btn-outline-brand {
    color: var(--brand-600);
    border-color: var(--brand-600);
}
.btn-outline-brand:hover {
    background-color: var(--brand-600);
    color: white;
}

.badge-brand {
    background-color: var(--brand-100);
    color: var(--brand-700);
}

/* ========================================
   GRADIENT BACKGROUNDS
======================================== */
.gradient-brand {
    background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 50%, var(--cyan-500) 100%);
}
.gradient-brand-horizontal {
    background: linear-gradient(90deg, var(--brand-600) 0%, var(--cyan-500) 100%);
}
.text-gradient-brand {
    background: linear-gradient(90deg, var(--brand-700) 0%, var(--cyan-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   CARD COMPONENTS
======================================== */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1) !important;
}

.card-brand {
    border: 1px solid var(--brand-100);
    transition: all 0.3s ease;
}
.card-brand:hover {
    border-color: var(--brand-500);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

/* ========================================
   NAVBAR
======================================== */
.navbar-glass {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ========================================
   FORM CONTROLS
======================================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 0.25rem rgba(124, 58, 237, 0.15);
}

/* ========================================
   SIDEBAR ADMIN
======================================== */
.sidebar-admin {
    background-color: #0f172a;
    color: #cbd5e1;
    width: 260px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1030;
    transition: transform 0.3s ease;
}

.sidebar-admin .nav-link {
    color: #cbd5e1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 0.125rem 0;
    transition: all 0.2s ease;
}

.sidebar-admin .nav-link:hover,
.sidebar-admin .nav-link.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.sidebar-admin .nav-link.active .bi,
.sidebar-admin .nav-link.active i {
    color: var(--brand-500);
}

.sidebar-admin .sidebar-section-title {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1rem 0.5rem;
}

.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background-color: #f1f5f9;
}

@media (max-width: 768px) {
    .sidebar-admin {
        transform: translateX(-100%);
    }
    .sidebar-admin.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animated-bg {
    background: linear-gradient(-45deg, #4c1d95, #7c3aed, #06b6d4, #4c1d95);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* ========================================
   HELPER CLASSES
======================================== */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icon-circle-sm {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   FLOATING WHATSAPP BUTTON
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
    color: white;
}