/**
 * MLR Member System - Dashboard Styles
 *
 * @package MLR_Member_System
 * @since 1.0.0
 */

/* Dashboard Wrapper */
.mlr-dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Dashboard Header */
.mlr-dashboard-header {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mlr-user-welcome {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mlr-user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #e74c3c;
}

.mlr-user-info h1 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
    color: #2c3e50;
}

.mlr-member-since {
    color: #7f8c8d;
    margin: 0;
}

/* Quick Stats */
.mlr-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mlr-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mlr-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mlr-stat-icon {
    font-size: 2rem;
    color: #e74c3c;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mlr-stat-content {
    display: flex;
    flex-direction: column;
}

.mlr-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.mlr-stat-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Navigation */
.mlr-dashboard-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mlr-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #7f8c8d;
    transition: all 0.2s;
    white-space: nowrap;
}

.mlr-nav-item:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.mlr-nav-item.active {
    background: #e74c3c;
    color: #fff;
}

.mlr-nav-item .dashicons {
    font-size: 1.2rem;
}

/* Dashboard Content */
.mlr-dashboard-content {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Dashboard Overview */
.mlr-dashboard-overview {
    display: grid;
    gap: 2rem;
}

.mlr-section h2 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
}

/* Bookings List */
.mlr-bookings-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Booking Card */
.mlr-booking-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mlr-booking-card:hover {
    border-color: #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

.mlr-booking-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #e74c3c;
    color: #fff;
    border-radius: 8px;
    padding: 0.5rem;
}

.mlr-booking-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.mlr-booking-month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.mlr-booking-details h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #2c3e50;
}

.mlr-booking-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.mlr-booking-time,
.mlr-booking-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.mlr-booking-time {
    color: #7f8c8d;
}

.mlr-booking-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.mlr-status-approved {
    background: #d4edda;
    color: #155724;
}

.mlr-status-pending {
    background: #fff3cd;
    color: #856404;
}

.mlr-status-canceled {
    background: #f8d7da;
    color: #721c24;
}

.mlr-booking-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    justify-content: center;
}

/* Packages Grid */
.mlr-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Package Card */
.mlr-package-card {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mlr-package-card:hover {
    border-color: #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

.mlr-package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.mlr-package-title {
    margin: 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

.mlr-package-type {
    background: #e74c3c;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Progress Bar */
.mlr-package-progress {
    margin-bottom: 1rem;
}

.mlr-progress-bar {
    height: 8px;
    background: #e1e8ed;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.mlr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    transition: width 0.3s;
}

.mlr-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.mlr-progress-percentage {
    font-weight: 600;
    color: #e74c3c;
}

.mlr-package-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #e1e8ed;
    border-bottom: 1px solid #e1e8ed;
}

.mlr-package-stat {
    display: flex;
    flex-direction: column;
}

.mlr-package-stat .mlr-stat-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.25rem;
}

.mlr-package-stat .mlr-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.mlr-package-actions {
    display: flex;
    gap: 0.5rem;
}

/* Activity Feed */
.mlr-activity-feed {
    display: grid;
    gap: 1rem;
}

.mlr-activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.mlr-activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}

.mlr-activity-icon .dashicons {
    font-size: 1.2rem;
}

.mlr-activity-content {
    flex: 1;
}

.mlr-activity-title {
    margin: 0 0 0.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.mlr-activity-description {
    margin: 0 0 0.5rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.mlr-activity-time {
    font-size: 0.85rem;
    color: #95a5a6;
}

/* Empty State */
.mlr-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.mlr-empty-state .dashicons {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.mlr-empty-state p {
    color: #7f8c8d;
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
}

/* Buttons */
.mlr-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.mlr-button-primary {
    background: #e74c3c;
    color: #fff;
}

.mlr-button-primary:hover {
    background: #c0392b;
    color: #fff;
}

.mlr-button-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.mlr-button-secondary:hover {
    background: #bdc3c7;
    color: #2c3e50;
}

.mlr-button-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Login Notice */
.mlr-login-notice {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin: 2rem auto;
}

.mlr-login-notice p {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.mlr-login-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: #e74c3c;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.mlr-login-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* Section Headers */
.mlr-section-header {
    margin-bottom: 2rem;
}

.mlr-section-header h2 {
    margin: 0 0 0.5rem;
    color: #2c3e50;
    font-size: 2rem;
}

.mlr-section-description {
    color: #7f8c8d;
    margin: 0;
    font-size: 1.1rem;
}

/* Bookings Grid */
.mlr-bookings-section {
    margin-bottom: 3rem;
}

.mlr-bookings-section h3 {
    margin: 0 0 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.mlr-bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.mlr-past-bookings {
    opacity: 0.7;
}

/* Packages Grid */
.mlr-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Empty State */
.mlr-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ecf0f1;
}

.mlr-empty-state .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.mlr-empty-state p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Info Box */
.mlr-info-box {
    background: #e8f5fe;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.mlr-info-box h4 {
    margin: 0 0 1rem;
    color: #2c3e50;
}

.mlr-info-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.mlr-info-box li {
    color: #34495e;
    margin-bottom: 0.5rem;
}

/* Notice Boxes */
.mlr-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.mlr-notice .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.mlr-notice-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.mlr-notice-warning .dashicons {
    color: #ffc107;
}

.mlr-notice strong {
    display: block;
    margin-bottom: 0.5rem;
}

.mlr-notice p {
    margin: 0 0 0.5rem;
}

/* Forms */
.mlr-form {
    max-width: 800px;
}

.mlr-form-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mlr-form-section h3 {
    margin: 0 0 1.5rem;
    color: #2c3e50;
    font-size: 1.3rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.75rem;
}

.mlr-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.mlr-form-group {
    margin-bottom: 1.5rem;
}

.mlr-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.mlr-form-group small {
    display: block;
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.mlr-input,
.mlr-select,
.mlr-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.mlr-input:focus,
.mlr-select:focus,
.mlr-textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

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

.mlr-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.mlr-checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.mlr-form-actions {
    margin-top: 2rem;
}

.mlr-button-primary {
    background: #e74c3c;
    color: #fff;
}

.mlr-button-primary:hover {
    background: #c0392b;
}

.mlr-password-section {
    border-top: 3px solid #ecf0f1;
    margin-top: 3rem;
}

/* Success/Error Messages */
.mlr-success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #28a745;
    margin-top: 1rem;
}

.mlr-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mlr-bookings-grid,
    .mlr-packages-grid {
        grid-template-columns: 1fr;
    }

    .mlr-form-row {
        grid-template-columns: 1fr;
    }

    .mlr-section-header h2 {
        font-size: 1.5rem;
    }
}
