/**
 * HotelHack Dashboard Styles
 */

/* === Layout === */
.hh-dashboard {
    display: flex;
    min-height: 600px;
    background: #f5f7fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    max-width: 1200px;
    margin: 20px auto;
}

/* === Sidebar === */
.hh-dashboard__sidebar {
    width: 260px;
    min-width: 260px;
    background: #1a202c;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.hh-dashboard__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid #2d3748;
}

.hh-dashboard__avatar img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.hh-dashboard__user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hh-dashboard__user-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hh-dashboard__user-email {
    font-size: 12px;
    color: #a0aec0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === Nav === */
.hh-dashboard__nav {
    flex: 1;
    padding: 12px 0;
}

.hh-dashboard__nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.hh-dashboard__nav-item:hover {
    background: #2d3748;
    color: #fff;
}

.hh-dashboard__nav-item.active {
    background: #2d3748;
    color: #fff;
    border-left-color: #667eea;
}

.hh-dashboard__nav-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

.hh-dashboard__logout {
    border-top: 1px solid #2d3748;
    padding: 12px 0;
}

.hh-dashboard__logout .hh-dashboard__nav-item {
    color: #fc8181;
}

.hh-dashboard__logout .hh-dashboard__nav-item:hover {
    color: #feb2b2;
    background: #2d3748;
}

/* === Content === */
.hh-dashboard__content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: #fff;
}

.hh-dashboard__content h2 {
    margin: 0 0 24px 0;
    font-size: 22px;
    font-weight: 600;
    color: #1a202c;
}

/* === Overview Cards === */
.hh-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.hh-overview-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.hh-overview-card__icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hh-overview-card__icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.hh-overview-card__body h3 {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hh-overview-card__value {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
}

.hh-overview-card__meta {
    margin: 4px 0 0;
    font-size: 13px;
    color: #718096;
}

.hh-text-muted {
    color: #a0aec0 !important;
    font-size: 14px !important;
}

.hh-link {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
}

.hh-link:hover {
    text-decoration: underline;
}

/* === Overview Section === */
.hh-overview-section {
    margin-top: 20px;
}

.hh-overview-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 16px 0;
}

/* === Mobile === */
.hh-dashboard__mobile-header {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #1a202c;
    color: #fff;
}

.hh-dashboard__menu-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
}

.hh-dashboard__menu-toggle .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.hh-dashboard__mobile-title {
    font-size: 16px;
    font-weight: 600;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hh-dashboard {
        flex-direction: column;
        border-radius: 0;
        margin: 0;
    }

    .hh-dashboard__sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        min-width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .hh-dashboard__sidebar.open {
        left: 0;
        box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    }

    .hh-dashboard__mobile-header {
        display: flex;
    }

    .hh-dashboard__content {
        padding: 20px 16px;
    }

    .hh-overview-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hh-dashboard__content h2 {
        font-size: 18px;
    }

    .hh-overview-card {
        padding: 16px;
    }
}
