﻿/* ===== AGENT DASHBOARD STYLES ===== */

/* Welcome Card - Compact Design Matching Tenant */
.welcome-card {
    background: linear-gradient(135deg, rgba(0, 166, 255, 0.8) 0%, rgba(0, 119, 179, 0.85) 100%),
                url('https://images.unsplash.com/photo-1555854877-bab0e564b8d5?w=1400&h=300&fit=crop&crop=center') center/cover;
    border-radius: 12px;
    padding: 1rem;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 166, 255, 0.2);
    overflow: hidden;
    position: relative;
    min-height: 120px;
    max-height: 140px;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.welcome-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.welcome-text {
    flex: 1;
    margin-right: 1rem;
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.welcome-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.welcome-animation {
    flex-shrink: 0;
    width: 140px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, #00A6FF, #0077B3);
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-card-warning .stat-icon {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stat-card-info .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #222222;
}

.stat-label {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
    font-weight: 500;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Quick Actions */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-outline-primary:hover {
    background-color: #00A6FF;
    border-color: #00A6FF;
}

.btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-outline-info:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-outline-warning:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

/* Table Styling */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
}

.property-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 166, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tips Section */
.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tip-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: rgba(0, 166, 255, 0.1);
}

.tip-content h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #222222;
}

.tip-content p {
    margin: 0;
    line-height: 1.4;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

/* Loading States */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .welcome-animation {
        display: none;
    }

    .welcome-text {
        margin: 0;
        width: 100%;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .welcome-actions {
        justify-content: center;
    }

    .welcome-card {
        padding: 1rem;
        min-height: 100px;
        max-height: 120px;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 1.3rem;
    }

    .welcome-subtitle {
        font-size: 0.8rem;
    }

    .welcome-card {
        padding: 0.8rem;
        min-height: 90px;
        max-height: 110px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Animation for dashboard elements */
.stat-card, .card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== COLORFUL STAT CARDS - MATCHING TENANT DESIGN ===== */

/* Colorful stat card backgrounds */
.stat-card-primary {
    background: linear-gradient(135deg, rgba(0, 166, 255, 0.1) 0%, rgba(128, 211, 255, 0.05) 100%) !important;
    border: 1px solid rgba(0, 166, 255, 0.2) !important;
    transition: all 0.3s ease !important;
}

.stat-card-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.05) 100%) !important;
    border: 1px solid rgba(40, 167, 69, 0.2) !important;
    transition: all 0.3s ease !important;
}

.stat-card-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(253, 126, 20, 0.05) 100%) !important;
    border: 1px solid rgba(255, 193, 7, 0.2) !important;
    transition: all 0.3s ease !important;
}

.stat-card-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(111, 66, 193, 0.05) 100%) !important;
    border: 1px solid rgba(23, 162, 184, 0.2) !important;
    transition: all 0.3s ease !important;
}

/* Enhanced hover effects for colorful stat cards */
.stat-card-primary:hover {
    background: linear-gradient(135deg, rgba(0, 166, 255, 0.15) 0%, rgba(128, 211, 255, 0.08) 100%) !important;
    border-color: rgba(0, 166, 255, 0.3) !important;
    box-shadow: 0 8px 30px rgba(0, 166, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

.stat-card-success:hover {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(32, 201, 151, 0.08) 100%) !important;
    border-color: rgba(40, 167, 69, 0.3) !important;
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.15) !important;
    transform: translateY(-2px) !important;
}

.stat-card-warning:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(253, 126, 20, 0.08) 100%) !important;
    border-color: rgba(255, 193, 7, 0.3) !important;
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.15) !important;
    transform: translateY(-2px) !important;
}

.stat-card-info:hover {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.15) 0%, rgba(111, 66, 193, 0.08) 100%) !important;
    border-color: rgba(23, 162, 184, 0.3) !important;
    box-shadow: 0 8px 30px rgba(23, 162, 184, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* ===== ACTIVITY ITEMS ===== */

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 166, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

/* ===== MODERN ACTION BUTTONS ===== */

.modern-action-btn {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    height: 100px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.modern-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--btn-accent-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.modern-action-btn:hover {
    transform: translateY(-2px);
    border-color: var(--btn-accent-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.modern-action-btn:hover::before {
    transform: scaleY(1);
}

.modern-action-btn:hover .btn-icon {
    background: var(--btn-accent-color);
    color: white;
    transform: scale(1.1);
}

.modern-action-btn:hover .btn-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--btn-bg-color);
    color: var(--btn-accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.btn-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2;
}

.btn-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.2;
}

.btn-arrow {
    color: #6c757d;
    font-size: 0.875rem;
    opacity: 0.6;
    transform: translateX(-2px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Button Color Variants */
.add-property-btn {
    --btn-accent-color: #28a745;
    --btn-bg-color: rgba(40, 167, 69, 0.1);
}

.submissions-btn {
    --btn-accent-color: #007bff;
    --btn-bg-color: rgba(0, 123, 255, 0.1);
}

.bookings-btn {
    --btn-accent-color: #fd7e14;
    --btn-bg-color: rgba(253, 126, 20, 0.1);
}

.messages-btn {
    --btn-accent-color: #6f42c1;
    --btn-bg-color: rgba(111, 66, 193, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-action-btn {
        height: 80px;
        padding: 1rem;
        gap: 0.75rem;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .btn-title {
        font-size: 0.9rem;
    }

    .btn-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .modern-action-btn {
        height: 70px;
        padding: 0.875rem;
        gap: 0.5rem;
    }

    .btn-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .btn-title {
        font-size: 0.85rem;
    }

    .btn-subtitle {
        font-size: 0.75rem;
    }

    .btn-arrow {
        font-size: 0.75rem;
    }
}
