/* ============================================
   ELLMECA BARBERSHOP - ELEGANT STYLING
   Tema Barbershop Klasik & Modern
   ============================================ */

/* =======================
   ROOT VARIABLES
   ======================= */
:root {
    --barbershop-black: #0a0a0a;
    --barbershop-dark: #1a1a1a;
    --barbershop-gold: #d4af37;
    --barbershop-gold-light: #f4d03f;
    --barbershop-red: #c41e3a;
    --barbershop-red-dark: #8b1538;
    --barbershop-white: #ffffff;
    --barbershop-cream: #f5f5dc;
    --barbershop-gray: #2d2d2d;
    --barbershop-gray-light: #4a4a4a;
    --barbershop-blue: #1e3a8a;
    --barbershop-blue-light: #3b82f6;
}

/* =======================
   GLOBAL BACKGROUND
   ======================= */
body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg,
            var(--barbershop-black) 0%,
            var(--barbershop-dark) 25%,
            #1a0a0a 50%,
            var(--barbershop-dark) 75%,
            var(--barbershop-black) 100%);
    background-attachment: fixed;
    color: var(--barbershop-white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Scissors Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20 L80 80 M80 20 L20 80' stroke='%23d4af37' stroke-width='0.5' opacity='0.05'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 L50 50 M50 10 L10 50' stroke='%23c41e3a' stroke-width='0.3' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 200px 200px, 120px 120px;
    background-position: 0 0, 50px 50px;
    pointer-events: none;
    z-index: 0;
}

body>* {
    position: relative;
    z-index: 1;
}

/* =======================
   NAVBAR
   ======================= */
.navbar-frontend,
.navbar-blur {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--barbershop-gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
    padding: 1rem 0;
    position: relative;
    z-index: 1060 !important; /* Higher than search bar and other components */
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--barbershop-white) !important;
    text-transform: uppercase;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--barbershop-gold) !important;
    transform: translateX(5px);
}

.navbar-brand .brand-main {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--barbershop-white);
}

.navbar-brand .brand-sub {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--barbershop-gold);
}

/* =======================
   LOGO CIRCLE WITH SCISSORS
   ======================= */
.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--barbershop-gold) 0%, var(--barbershop-gold-light) 100%);
    box-shadow:
        0 0 20px rgba(212, 175, 55, 0.6),
        0 0 40px rgba(212, 175, 55, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    color: var(--barbershop-black);
    font-size: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid var(--barbershop-gold);
}

.logo-circle::before {
    content: '✂';
    position: absolute;
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    pointer-events: none;
    z-index: 0;
}

.logo-circle:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.8),
        0 0 60px rgba(212, 175, 55, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.4);
}

.logo-circle i {
    position: relative;
    z-index: 1;
}

/* =======================
   CARD GLASS EFFECT
   ======================= */
.card-glass,
.card-frontend {
    background: rgba(26, 26, 26, 0.95) !important;
    border-radius: 1.5rem !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    color: var(--barbershop-white);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Ensure all interactive elements inside card are clickable */
.card-glass>*,
.card-frontend>* {
    position: relative;
    z-index: 1;
}

.card-glass button,
.card-glass a,
.card-glass input,
.card-glass select,
.card-glass textarea,
.card-glass .btn,
.card-frontend button,
.card-frontend a,
.card-frontend input,
.card-frontend select,
.card-frontend textarea,
.card-frontend .btn {
    position: relative;
    z-index: 10 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.card-glass .card-body,
.card-frontend .card-body {
    position: relative;
    z-index: 1;
}

.card-glass .card-body>*,
.card-frontend .card-body>* {
    position: relative;
    z-index: 2;
}

.card-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.card-glass:hover::before {
    opacity: 1;
}

.card-glass:hover {
    transform: translateY(-5px);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(212, 175, 55, 0.5) !important;
}

/* Utility to disable hover effect on non-clickable cards */
.card-glass.no-hover:hover {
    transform: none !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    cursor: default;
}

/* =======================
   FORM CONTROLS
   ======================= */
.card-glass .form-control,
.card-glass .form-select {
    background-color: rgba(10, 10, 10, 0.8) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: var(--barbershop-white) !important;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.card-glass .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.card-glass .form-control:focus,
.card-glass .form-select:focus {
    background-color: rgba(10, 10, 10, 0.95) !important;
    border-color: var(--barbershop-gold) !important;
    color: var(--barbershop-white) !important;
    box-shadow:
        0 0 0 0.2rem rgba(212, 175, 55, 0.25),
        0 0 20px rgba(212, 175, 55, 0.2);
    outline: none;
}

.card-glass .form-label {
    color: var(--barbershop-gold);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* =======================
   BUTTONS - ENSURE CLICKABLE
   ======================= */
/* Ensure all buttons and links are clickable */
button,
a,
input[type="submit"],
input[type="button"],
.btn,
.btn-neon,
.btn-outline-soft,
.btn-outline-light,
.btn-light {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

/* =======================
   BUTTONS
   ======================= */
.btn-neon {
    background: linear-gradient(135deg, var(--barbershop-gold) 0%, var(--barbershop-gold-light) 100%) !important;
    border: none !important;
    color: var(--barbershop-black) !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

/* Ensure button text and content are clickable */
.btn-neon,
.btn-neon * {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.btn-neon:hover::before {
    left: 100%;
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(212, 175, 55, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: var(--barbershop-black) !important;
}

.btn-neon:active {
    transform: translateY(0);
}

.btn-outline-soft,
.btn-outline-light {
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
    color: var(--barbershop-white) !important;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-soft:hover,
.btn-outline-light:hover {
    background: var(--barbershop-gold) !important;
    border-color: var(--barbershop-gold) !important;
    color: var(--barbershop-black) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-light {
    background: var(--barbershop-gold) !important;
    border-color: var(--barbershop-gold) !important;
    color: var(--barbershop-black) !important;
    font-weight: 600;
}

.btn-light:hover {
    background: var(--barbershop-gold-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* =======================
   TABLES
   ======================= */
.table-dark-glass {
    --bs-table-bg: rgba(10, 10, 10, 0.9);
    --bs-table-striped-bg: rgba(26, 26, 26, 0.95);
    --bs-table-hover-bg: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.2);
}

.table-dark-glass th {
    color: var(--barbershop-gold) !important;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--barbershop-gold);
    background: rgba(10, 10, 10, 0.95) !important;
}

.table-dark-glass td {
    color: var(--barbershop-white) !important;
    vertical-align: middle;
    border-color: rgba(212, 175, 55, 0.1);
}

.table-dark-glass tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.15) !important;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* =======================
   BADGES
   ======================= */
.badge-soft {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.2)) !important;
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--barbershop-gold) !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.badge {
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* =======================
   ALERTS
   ======================= */
.alert {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(34, 197, 94, 0.2) !important;
    border-left: 4px solid #22c55e;
    color: #86efac;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.2) !important;
    border-left: 4px solid #ef4444;
    color: #fca5a5;
}

/* =======================
   PAGE TITLE
   ======================= */
.page-title {
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--barbershop-gold);
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 2rem;
}

/* =======================
   SCISSORS DECORATION
   ======================= */
.scissors-decoration {
    position: relative;
    display: inline-block;
}

.scissors-decoration::before,
.scissors-decoration::after {
    content: '✂';
    position: absolute;
    color: var(--barbershop-gold);
    opacity: 0.3;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
}

.scissors-decoration::before {
    left: -2rem;
    animation-delay: 0s;
}

.scissors-decoration::after {
    right: -2rem;
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(15deg);
    }
}

/* =======================
   ANIMATIONS
   ======================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-glass {
    animation: fadeInUp 0.6s ease-out;
}

/* =======================
   RESPONSIVE
   ======================= */
@media (max-width: 768px) {
    .logo-circle {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .navbar-brand {
        font-size: 0.9rem;
    }

    .card-glass {
        border-radius: 1rem;
    }
}

/* =======================
   SCROLLBAR STYLING
   ======================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--barbershop-black);
}

::-webkit-scrollbar-thumb {
    background: var(--barbershop-gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--barbershop-gold-light);
}

/* =======================
   ADDITIONAL BARBERSHOP ELEMENTS
   ======================= */
.barbershop-divider {
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--barbershop-gold),
            transparent);
    margin: 2rem 0;
    position: relative;
}

.barbershop-divider::before,
.barbershop-divider::after {
    content: '✂';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--barbershop-gold);
    background: var(--barbershop-black);
    padding: 0 1rem;
    pointer-events: none;
}

.barbershop-divider::before {
    left: 20%;
}

.barbershop-divider::after {
    right: 20%;
}

/* =======================
   TEXT COLORS
   ======================= */
.text-barbershop-gold {
    color: var(--barbershop-gold) !important;
}

.text-barbershop-red {
    color: var(--barbershop-red) !important;
}

/* =======================
   BACKGROUND UTILITIES
   ======================= */
.bg-barbershop-dark {
    background-color: var(--barbershop-dark) !important;
}

.bg-barbershop-black {
    background-color: var(--barbershop-black) !important;
}

/* =======================
   DASHBOARD IMPROVEMENTS
   ======================= */
.card-glass .btn-outline-soft {
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

.card-glass .btn-outline-soft:hover {
    background: rgba(212, 175, 55, 0.15) !important;
    border-color: var(--barbershop-gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.card-glass .btn-neon {
    min-height: 120px;
}

/* Compact spacing for dashboard */
.mb-3 {
    margin-bottom: 1rem !important;
}

.g-3>* {
    padding: 0.5rem;
}

/* Icon sizing for dashboard cards */
.logo-circle {
    flex-shrink: 0;
}

/* =======================
   PREMIUM CARD MENUS
   ======================= */
.card-menu {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(35, 35, 35, 0.6), rgba(20, 20, 20, 0.8));
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
    height: 100%;
    display: block;
    text-decoration: none;
}

.card-menu:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.15);
}

.card-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(212, 175, 55, 0.1) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.card-menu:hover::after {
    transform: translateX(100%);
}

.menu-icon-box {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #d4af37;
    /* Gold */
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.card-menu:hover .menu-icon-box {
    background: #d4af37;
    color: #000;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.menu-title {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.card-menu:hover .menu-title {
    color: #d4af37;
}

.menu-desc {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.4;
}

.badge-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.4);
}

/* HERO VARIANT */
.card-menu-hero {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(20, 20, 20, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.card-menu-hero .menu-icon-box {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    background: rgba(212, 175, 55, 0.2);
    color: #fff;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.card-menu-hero:hover .menu-icon-box {
    background: #fff;
    color: #d4af37;
}

.card-menu-hero .menu-title {
    font-size: 1.4rem;
    color: var(--barbershop-gold);
}

.card-menu-hero:hover .menu-title {
    color: #fff;
}