/**
 * Admin Panel Styles
 * GMP Bienes Raíces
 */

/* Variables */
:root {
    --sidebar-width: 260px;
    --sidebar-bg: #0c2442;
    --sidebar-hover: #1a3a5c;
    --topbar-height: 60px;
    --gold: #dcc168;
    --navy: #0c2442;
}

/* Layout */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.admin-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-small {
    height: 40px;
    width: auto;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sidebar Nav */
.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    text-decoration: none;
}

.sidebar-nav .nav-link:hover {
    color: white;
    background: var(--sidebar-hover);
}

.sidebar-nav .nav-link.active {
    color: var(--gold);
    background: var(--sidebar-hover);
    border-left: 3px solid var(--gold);
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

/* Topbar */
.admin-topbar {
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Main Content */
.admin-main {
    flex: 1;
    padding: 1.5rem;
}

/* Footer */
.admin-footer {
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
}

/* Utility Classes */
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }

.btn-get-started {
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-get-started:hover {
    background: var(--navy);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-outline-navy {
    border-color: var(--navy);
    color: var(--navy);
}

.btn-outline-navy:hover {
    background: var(--navy);
    color: white;
}

/* Cards */
.card {
    border-radius: 12px;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    background: #f8f9fa;
}

/* Tables */
.table img {
    border-radius: 6px;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(220, 193, 104, 0.25);
}

/* Badges */
.badge {
    padding: 0.35rem 0.65rem;
    font-weight: 500;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
}