/* 
   Cuban Links Only - Premium Theme 
   Colors: Gold (#D4AF37), Black (#0a0a0a), Dark Grey (#141414)
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --bg-color: #050505;
    --card-bg: #0f0f0f;
    --input-bg: #151515;
    /* Richer metallic gold sampled from logo */
    --gold-primary: #EAB308;
    --gold-gradient: linear-gradient(180deg, #FFD700 0%, #EAB308 100%);
    --gold-hover: #FACC15;
    --gold-muted: rgba(234, 179, 8, 0.4);
    /* Vibrant electric blue from logo glow */
    --blue-electric: #00E5FF;
    --blue-glow: 0 0 15px rgba(0, 229, 255, 0.6);
    /* Chrome/Silver from logo text */
    --chrome-silver: #E5E7EB;
    --text-heading: #ffffff;
    --text-body: #d1d5db;
    --border-color: #262626;
    --sidebar-width: 260px;
    --header-height: 90px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #0a0a0a 70%);
    color: var(--text-body);
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
.brand-font {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    color: var(--text-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Layout Structure */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow-y: auto !important;
    overflow-x: hidden;

    /* Firefox scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) rgba(0, 0, 0, 0.3);
}

/* Chrome, Edge, Safari scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--gold-hover);
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    padding-top: calc(var(--header-height) + 30px);
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
}

/* Sidebar Components */
.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sidebar-menu {
    padding: 20px 0;
    list-style: none;
    flex: 1;
    overflow-y: auto;
}

.menu-item {
    margin-bottom: 5px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--text-body);
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.menu-link:hover,
.menu-link.active {
    background: rgba(0, 229, 255, 0.05);
    color: var(--blue-electric);
    border-left-color: var(--blue-electric);
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.3);
}

.menu-icon {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Top Header */
.top-header {
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    z-index: 90;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.page-title {
    font-size: 1.5rem;
    color: var(--text-heading);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 700;
    color: var(--gold-primary);
}

/* Forms & Cards */
.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue-electric), transparent);
    box-shadow: 0 0 10px var(--blue-electric);
}

.section-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: var(--gold-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid #333;
    color: #fff;
    border-radius: 2px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
}

.form-control:focus,
.form-select:focus {
    background-color: #111;
    border-color: var(--blue-electric);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    outline: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 2px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-size: 0.85rem;
    text-align: center;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #000;
    border: 1px solid #B45309;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 5px rgba(234, 179, 8, 0.3);
}

.btn-gold:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6), var(--blue-glow);
}

.btn-outline {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid var(--blue-electric);
    color: var(--blue-electric);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.btn-outline:hover {
    background: var(--blue-electric);
    color: #000;
    box-shadow: var(--blue-glow);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.75rem;
}

.w-100 {
    width: 100%;
}

.text-end {
    text-align: right;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-0 {
    margin-bottom: 0;
}

/* Grid System (Simple) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-12 {
    width: 100%;
    padding: 0 10px;
}

.col-md-6 {
    width: 50%;
    padding: 0 10px;
}

.col-lg-3 {
    width: 25%;
    padding: 0 10px;
}

.col-lg-4 {
    width: 33.333%;
    padding: 0 10px;
}

@media (max-width: 768px) {

    .col-md-6,
    .col-lg-3,
    .col-lg-4 {
        width: 100%;
    }

    .sidebar {
        width: 0;
        overflow: hidden;
    }

    .main-content {
        margin-left: 0;
    }

    .top-header {
        left: 0;
    }
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.custom-table th {
    text-align: left;
    color: var(--text-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gold-muted);
    padding: 15px;
}

.custom-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
}

.badge {
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
}

.badge-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.badge-completed {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

/* Alerts */
.alert {
    padding: 15px;
    border: 1px solid var(--blue-electric);
    background: rgba(0, 229, 255, 0.05);
    color: var(--blue-electric);
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.invalid-feedback {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: 5px;
    list-style: none;
    padding: 0;
}

.is-invalid {
    border-color: #ff4d4d !important;
}

/* Utility */
.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.mt-4 {
    margin-top: 1.5rem;
}