/* ==========================================================================
   Airnb Dashboard Styles
   Complete dashboard styling for Host, Guest, and Admin dashboards
   ========================================================================== */

/* Reset and Base Styles */
.airnb-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #2d3748;
    line-height: 1.6;
    background: #f7fafc;
    min-height: 100vh;
}

.airnb-dashboard * {
    box-sizing: border-box;
}

/* Dashboard Layout */
.airnb-dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.airnb-dashboard-nav {
    width: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    position: sticky;
    /* Changed from fixed to sticky */
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    /* Prevent shrinking */
}

/* Custom Scrollbar for Sidebar */
.airnb-dashboard-nav::-webkit-scrollbar {
    width: 5px;
}

.airnb-dashboard-nav::-webkit-scrollbar-track {
    background: transparent;
}

.airnb-dashboard-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.airnb-dashboard-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.airnb-nav-header {
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.airnb-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.airnb-user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
}

.airnb-user-details h3 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
}

.airnb-user-details p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.airnb-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.airnb-nav-item {
    margin: 0;
}

.airnb-nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.airnb-nav-item a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.airnb-nav-item.active a {
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid white;
}

.airnb-nav-item .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.airnb-nav-text {
    font-size: 15px;
    font-weight: 500;
}

.airnb-nav-notification {
    background: #e53e3e;
    /* Red color */
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: auto;
    /* Push to right */
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Reviews badge — amber/gold to distinguish from the red messages badge */
.airnb-nav-notification--reviews {
    background: #d69e2e;
}


/* Main Content Area */
.airnb-dashboard-content {
    /* margin-left: 280px; Removed manual margin */
    flex: 1;
    padding: 30px;
    width: auto;
    /* Let flex handle width */
    max-width: 100%;
}

.airnb-page-header {
    margin-bottom: 30px;
}

.airnb-page-header h1 {
    font-size: 32px;
    margin: 0 0 10px;
    color: #1a202c;
}

.airnb-page-header p {
    margin: 0;
    color: #718096;
    font-size: 16px;
}

/* Stats Cards */
.airnb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.airnb-stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.airnb-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.airnb-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.airnb-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.airnb-stat-icon.blue {
    background: #ebf8ff;
    color: #3182ce;
}

.airnb-stat-icon.green {
    background: #f0fff4;
    color: #38a169;
}

.airnb-stat-icon.purple {
    background: #faf5ff;
    color: #805ad5;
}

.airnb-stat-icon.orange {
    background: #fffaf0;
    color: #dd6b20;
}

.airnb-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 5px;
}

.airnb-stat-label {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

/* Content Cards */
.airnb-content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 24px;
}

.airnb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.airnb-card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #1a202c;
}

/* Buttons */
.airnb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    outline: none;
}

.airnb-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.airnb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.airnb-btn-secondary {
    background: #f7fafc;
    color: #2d3748;
    border: 2px solid #e2e8f0;
}

.airnb-btn-secondary:hover {
    background: #edf2f7;
}

.airnb-btn-success {
    background: #48bb78;
    color: white;
}

.airnb-btn-danger {
    background: #f56565;
    color: white;
}

.airnb-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.airnb-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* Tables */
.airnb-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.airnb-table thead th {
    background: #f7fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
}

.airnb-table tbody tr {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.airnb-table tbody tr:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.airnb-table tbody td {
    padding: 16px;
    border-top: 1px solid #f7fafc;
    border-bottom: 1px solid #f7fafc;
}

.airnb-table tbody td:first-child {
    border-left: 1px solid #f7fafc;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.airnb-table tbody td:last-child {
    border-right: 1px solid #f7fafc;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Badges */
.airnb-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.airnb-badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.airnb-badge-warning {
    background: #fefcbf;
    color: #744210;
}

.airnb-badge-danger {
    background: #fed7d7;
    color: #742a2a;
}

.airnb-badge-info {
    background: #bee3f8;
    color: #2c5282;
}

/* Forms */
.airnb-form-group {
    margin-bottom: 20px;
}

.airnb-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
    font-size: 14px;
}

.airnb-form-input,
.airnb-form-select,
.airnb-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.airnb-form-input:focus,
.airnb-form-select:focus,
.airnb-form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.airnb-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.airnb-form-help {
    font-size: 13px;
    color: #718096;
    margin-top: 6px;
    display: block;
}

/* Loading Spinner */
.airnb-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: airnb-spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes airnb-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Empty State */
.airnb-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.airnb-empty-icon {
    font-size: 64px;
    color: #cbd5e0;
    margin-bottom: 16px;
}

.airnb-empty-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px;
}

.airnb-empty-text {
    color: #718096;
    margin: 0 0 24px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .airnb-dashboard-nav {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .airnb-dashboard-nav.open {
        transform: translateX(0);
    }

    .airnb-dashboard-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .airnb-stats-grid {
        grid-template-columns: 1fr;
    }

    .airnb-page-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .airnb-dashboard-content {
        padding: 15px;
    }

    .airnb-table {
        font-size: 14px;
    }

    .airnb-table thead {
        display: none;
    }

    .airnb-table tbody tr {
        display: block;
        margin-bottom: 16px;
        border-radius: 8px;
        padding: 16px;
    }

    .airnb-table tbody td {
        display: block;
        padding: 8px 0;
        border: none;
        text-align: right;
    }

    .airnb-table tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
    }
}

/* Utility Classes */
.airnb-mb-0 {
    margin-bottom: 0 !important;
}

.airnb-mb-1 {
    margin-bottom: 8px !important;
}

.airnb-mb-2 {
    margin-bottom: 16px !important;
}

.airnb-mb-3 {
    margin-bottom: 24px !important;
}

.airnb-mb-4 {
    margin-bottom: 32px !important;
}

.airnb-mt-0 {
    margin-top: 0 !important;
}

.airnb-mt-1 {
    margin-top: 8px !important;
}

.airnb-mt-2 {
    margin-top: 16px !important;
}

.airnb-mt-3 {
    margin-top: 24px !important;
}

.airnb-mt-4 {
    margin-top: 32px !important;
}

.airnb-text-center {
    text-align: center !important;
}

.airnb-text-right {
    text-align: right !important;
}

.airnb-text-left {
    text-align: left !important;
}

.airnb-flex {
    display: flex !important;
}

.airnb-flex-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.airnb-flex-between {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.airnb-gap-2 {
    gap: 16px !important;
}