
/* Dashboard Container */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: #f8f9ff;
    min-height: calc(100vh - 140px);
}

/* Dashboard Hero Section */
.dashboard-hero {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hero-content p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

.stat-card {
    background: var(--primary-color);
    border-radius: 16px;
    padding: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Ensure all text within stat cards is white */
.stat-card * {
    color: white !important;
}

.stat-card .stat-number {
    color: white !important;
}

.stat-card .stat-label {
    color: white !important;
    opacity: 0.9;
}

.stat-card .stat-icon {
    color: white !important;
}

.stat-card .stat-icon i {
    color: white !important;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.3);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: inherit !important;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: inherit !important;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* Main Section */
.dashboard-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Businesses Grid */
.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Business Card */
.business-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.business-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.business-card:hover .business-image img {
    transform: scale(1.05);
}

.business-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8d9f5, #d4c5e8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #8b7ba8;
}

.business-image .image-placeholder i {
    opacity: 0.6;
}

.business-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #10b981;
    color: white;
}

.status-badge.inactive {
    background: #ef4444;
    color: white;
}

.business-info {
    padding: 1.5rem;
}

.business-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.business-category {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.business-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

.stat-item i {
    color: var(--primary-color);
}

.business-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.business-actions .btn-outline,
.business-actions .btn-primary {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    text-align: center;
    border-radius: 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.empty-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Sidebar */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.sidebar-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Activity List */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.activity-meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.activity-business {
    color: #64748b;
    font-size: 0.8rem;
}

.activity-time {
    color: #94a3b8;
    font-size: 0.75rem;
}

.activity-empty {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}

.activity-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #2c3e50 !important;
    text-decoration: none !important;
}

.action-btn:visited {
    color: #2c3e50 !important;
    text-decoration: none !important;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateX(4px);
    text-decoration: none !important;
}

.action-btn:focus {
    color: white !important;
    text-decoration: none !important;
}

.action-btn i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.action-btn:hover i {
    color: white;
}

/* Shortcuts Section */
.shortcuts-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.shortcut-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #2c3e50 !important;
    text-decoration: none !important;
}

.shortcut-card:visited {
    color: #2c3e50 !important;
    text-decoration: none !important;
}

.shortcut-card:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
    text-decoration: none !important;
}

.shortcut-card:focus {
    color: white !important;
    text-decoration: none !important;
}

.shortcut-card:hover .shortcut-content h3,
.shortcut-card:hover .shortcut-content p {
    color: white !important;
}

.shortcut-card .shortcut-content h3,
.shortcut-card .shortcut-content p {
    color: inherit;
}

.shortcut-icon {
    width: 50px;
    height: 50px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.shortcut-card:hover .shortcut-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.shortcut-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.shortcut-content p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-sidebar {
        order: 1; /* Changed from -1 to show sidebar after main content on mobile */
    }
    
    .businesses-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .shortcuts-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }
    
    .dashboard-hero {
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .businesses-grid {
        grid-template-columns: 1fr;
    }
    
    .business-actions {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .shortcuts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .shortcut-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .dashboard-section,
    .sidebar-section {
        padding: 1rem;
    }
}



/* Guest User Styling */
.guest-welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.welcome-text h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.welcome-text p {
    opacity: 0.9;
    margin: 0;
}

.welcome-actions {
    display: flex;
    gap: 1rem;
}

.welcome-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.welcome-actions .btn-primary {
    background: white;
    color: var(--primary-color);
}

.welcome-actions .btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

/* Guest Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    overflow-y: auto;
    padding: 2rem;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    max-width: 600px;
    width: 100%;
    margin: 2rem auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 2rem 2rem 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 1rem 2rem 2rem 2rem;
}

.guest-modal-content {
    text-align: center;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2rem;
    color: white;
}

.guest-modal-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.guest-modal-content > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.benefit-item i {
    color: #28a745;
    font-size: 1.1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.modal-actions .btn {
    padding: 0.875rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guest-form-option {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.guest-form-option p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #666;
}

.guest-form-option .form-group {
    margin-bottom: 1rem;
}

.guest-form-option input,
.guest-form-option textarea,
.guest-form-option select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.guest-form-option input:focus,
.guest-form-option textarea:focus,
.guest-form-option select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.guest-form-option button {
    width: 100%;
    padding: 1rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.guest-form-option button:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-content {
        flex-direction: column;
        text-align: center;
    }

    .welcome-actions {
        justify-content: center;
    }

    .modal {
        padding: 1rem;
    }

    .modal-content {
        margin: 1rem auto;
    }

    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
