/* 
   MAKIK STUDIO FACT - Estilos Profesionales y Elegantes
   Paleta: Oro y Negro (Audiovisual Premium)
*/

:root {
    --primary-gold: #d4af37;
    --dark-gold: #b8860b;
    --light-gold: #f1c40f;
    --bg-black: #0a0a0a;
    --card-bg: #141414;
    --input-bg: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --accent-color: #f1c40f;
    --danger: #ff4d4d;
    --success: #2ecc71;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    line-height: 1.6;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background: #000;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 100px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-item:hover {
    color: var(--primary-gold);
}

.nav-item.active {
    color: #000;
    background: var(--primary-gold);
    font-weight: 600;
}

.nav-item i {
    font-size: 1.1rem;
}

/* Dashboard Layout */
main {
    flex: 1;
    padding: 2.5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Tab Bar Mobile Fix */
@media (max-width: 900px) {
    header {
        height: 100px;
        padding: 0 1.2rem;
    }
    
    .logo-container img {
        height: 50px;
    }

    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #000;
        padding: 0.5rem;
        justify-content: space-around;
        border-top: 2px solid rgba(212, 175, 55, 0.2);
        gap: 0;
        height: 100px;
        z-index: 2000;
        box-shadow: 0 -5px 25px rgba(0,0,0,0.8);
    }
    
    .nav-item {
        flex-direction: column;
        gap: 8px;
        padding: 10px 5px;
        font-size: 0.75rem;
        flex: 1;
        background: transparent !important;
        color: var(--text-muted);
    }

    .nav-item.active {
        color: var(--primary-gold) !important;
        background: transparent !important;
        font-weight: 700;
    }

    .nav-item i {
        font-size: 1.6rem;
    }
    
    .nav-item span {
        display: block;
    }

    main {
        padding: 1.5rem 1rem 100px 1rem;
    }

    .user-profile span {
        display: none !important;
    }

    .hide-mobile {
        display: none !important;
    }
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gold-border {
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Dropdown de búsqueda estilizado */
.search-results-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    z-index: 2000;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    animation: fadeInDown 0.2s ease-out;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.search-result-item .name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 2px;
}

.search-result-item .meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #000;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 15px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary-gold);
}

.password-wrapper .form-input {
    padding-right: 45px;
}

/* Table Style */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th {
    text-align: left;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #1a1a1a;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-gold);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 1.25rem;
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-info { border-left-color: var(--primary-gold); }

@media (max-width: 600px) {
    #toast-container {
        top: auto;
        bottom: 100px;
        right: 15px;
        left: 15px;
    }
    .toast {
        min-width: 100%;
    }
}
