/* ========================================
   DASHBOARD STYLES - Client & Vendor Pages
   ======================================== */

/* Dashboard Container */
.dashboard-container {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 2rem 0;
}

/* Cards */
.dashboard-card {
    background: white;
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dashboard-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
}

.dashboard-card-header h4,
.dashboard-card-header h5 {
    margin: 0;
    font-weight: 600;
}

.dashboard-card-header i {
    margin-right: 10px;
}

.dashboard-card-body {
    padding: 1.5rem;
}

.dashboard-card-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stats-card .stats-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e6f0ff, #cfe2ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stats-card .stats-icon i {
    font-size: 1.8rem;
    color: #0d6efd;
}

.stats-card .stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1e2b;
    margin-bottom: 0.5rem;
}

.stats-card .stats-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Forms */
.dashboard-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-label {
    font-weight: 600;
    color: #1a1e2b;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    outline: none;
}

.form-control:hover,
.form-select:hover {
    border-color: #adb5bd;
}

.form-control.is-valid {
    border-color: #198754;
    background-image: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

/* Buttons */
.btn-dashboard {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-dashboard-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
}

.btn-dashboard-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
}

.btn-dashboard-secondary {
    background: #6c757d;
    color: white;
}

.btn-dashboard-secondary:hover {
    background: #5c636a;
    transform: translateY(-2px);
}

.btn-dashboard-success {
    background: linear-gradient(135deg, #198754, #157347);
    color: white;
}

.btn-dashboard-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.btn-dashboard-danger {
    background: linear-gradient(135deg, #dc3545, #bb2d3b);
    color: white;
}

.btn-dashboard-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-dashboard-outline {
    background: transparent;
    border: 2px solid #0d6efd;
    color: #0d6efd;
}

.btn-dashboard-outline:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.project-card-img-placeholder {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-img-placeholder i {
    font-size: 3rem;
    color: #adb5bd;
}

.project-card-body {
    padding: 1.25rem;
}

.project-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1e2b;
}

.project-card-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-card-meta {
    font-size: 0.75rem;
    color: #adb5bd;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-card-footer {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Modals */
.dashboard-modal .modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}

.dashboard-modal .modal-header {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
}

.dashboard-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.dashboard-modal .modal-body {
    padding: 1.5rem;
}

.dashboard-modal .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Tables */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th {
    padding: 1rem;
    text-align: left;
    background: #f8f9fa;
    font-weight: 600;
    color: #1a1e2b;
    border-bottom: 2px solid #e9ecef;
}

.dashboard-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.dashboard-table tr:hover {
    background: #f8f9fa;
}

/* Profile Section */
.profile-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.profile-avatar i {
    font-size: 3rem;
    color: white;
}

.profile-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-info h3 {
    margin-bottom: 0.25rem;
    color: #1a1e2b;
}

.profile-info p {
    color: #6c757d;
    margin: 0;
}

/* Alerts & Notifications */
.alert-dashboard {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: none;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background: #f8d7da;
    color: #842029;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-info {
    background: #cff4fc;
    color: #055160;
}

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

.empty-state i {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.empty-state h5 {
    font-size: 1.25rem;
    color: #1a1e2b;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }
    
    .dashboard-card-body {
        padding: 1rem;
    }
    
    .stats-card .stats-number {
        font-size: 1.75rem;
    }
    
    .stats-card .stats-icon {
        width: 45px;
        height: 45px;
    }
    
    .stats-card .stats-icon i {
        font-size: 1.3rem;
    }
    
    .btn-dashboard {
        padding: 0.6rem 1.2rem;
    }
    
    .project-card-img,
    .project-card-img-placeholder {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .dashboard-card-header {
        padding: 1rem;
    }
    
    .dashboard-card-header h4 {
        font-size: 1.2rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-card .stats-number {
        font-size: 1.5rem;
    }
    
    .profile-section {
        padding: 1rem;
    }
    
    .empty-state i {
        font-size: 3rem;
    }
    
    .btn-dashboard {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}