/* ============================================================
   dashboard.css — reconstruction (l'original n'a jamais été
   commité ni archivé). Styles des espaces candidat & employeur,
   fidèles au design itjob.tn : bleu #766DF4, cartes blanches.
   ============================================================ */

/* ---------- Squelette ---------- */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 10px 0 40px;
}
@media (min-width: 992px) {
    .dashboard-container {
        flex-direction: row;
        align-items: flex-start;
    }
}
.dashboard-content-wrapper {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---------- Cartes ---------- */
.dashboard-section {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    padding: 25px 20px;
    margin-bottom: 30px;
}
@media (min-width: 768px) {
    .dashboard-section {
        padding: 30px;
    }
}
.dashboard-section > h4,
.dashboard-section h4.title {
    font-size: 18px;
    font-weight: 600;
    color: #232630;
    margin: 0 0 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dashboard-section > h4 svg,
.dashboard-section h4.title svg {
    width: 20px;
    height: 20px;
    color: #766DF4;
    flex-shrink: 0;
}

/* ---------- Sidebar ---------- */
.dashboard-sidebar {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    padding: 30px 25px;
    width: 100%;
}
@media (min-width: 992px) {
    .dashboard-sidebar {
        width: 280px;
        flex: 0 0 280px;
        margin-right: 30px;
    }
}
.dashboard-sidebar .user-info,
.dashboard-sidebar .company-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}
.dashboard-sidebar .user-info .thumb,
.dashboard-sidebar .company-info .thumb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f4fb;
}
.dashboard-sidebar .company-info .thumb {
    border-radius: 8px;
}
.dashboard-sidebar .user-info .thumb img,
.dashboard-sidebar .company-info .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dashboard-sidebar .user-info .user-body h5,
.dashboard-sidebar .company-info .company-body h5 {
    font-size: 16px;
    font-weight: 600;
    color: #232630;
    margin: 0;
}
.profile-progress .progress-on {
    font-size: 13px;
    color: #6f7484;
    margin: 0 0 15px;
}

/* Menu */
.dashboard-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dashboard-menu ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 3px;
    padding: 9px 12px;
    margin-bottom: 2px;
}
.dashboard-menu ul li i {
    color: #aab0bf;
    width: 16px;
    text-align: center;
    font-size: 13px;
}
.dashboard-menu ul li a {
    color: #55596b;
    font-size: 14px;
    text-decoration: none;
    flex: 1;
}
.dashboard-menu ul li:hover,
.dashboard-menu ul li.active {
    background: rgba(118, 109, 244, 0.08);
}
.dashboard-menu ul li:hover a,
.dashboard-menu ul li.active a,
.dashboard-menu ul li.active i {
    color: #766DF4;
}
.dashboard-menu ul.delete {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 15px;
    padding-top: 15px;
}

/* ---------- Tuiles statistiques ---------- */
.user-statistic-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
@media (min-width: 576px) {
    .user-statistic-block {
        grid-template-columns: repeat(3, 1fr);
    }
}
.user-statistic {
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    padding: 25px 15px;
}
.user-statistic svg,
.user-statistic i {
    width: 26px;
    height: 26px;
    color: #766DF4;
    font-size: 24px;
}
.user-statistic h3 {
    font-size: 28px;
    font-weight: 700;
    color: #232630;
    margin: 10px 0 2px;
}
.user-statistic span {
    font-size: 13px;
    color: #6f7484;
}

/* ---------- Activité récente ---------- */
.activity-list {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.activity-list:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.activity-list > i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(118, 109, 244, 0.1);
    color: #766DF4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.activity-list .content {
    flex: 1;
    min-width: 0;
}
.activity-list .content h5 {
    font-size: 14px;
    font-weight: 500;
    color: #232630;
    margin: 0 0 3px;
    word-break: break-word;
}
.activity-list .content .time {
    font-size: 12px;
    color: #9ba0af;
}
.activity-list .close-activity {
    color: #c3c7d1;
    cursor: pointer;
    flex-shrink: 0;
}
.activity-list .close-activity:hover {
    color: #ff4f4f;
}

/* ---------- Photo de profil / uploads ---------- */
.upload-profile-photo {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.upload-profile-photo .update-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f4fb;
    flex-shrink: 0;
}
.upload-profile-photo .update-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.file-upload {
    position: relative;
    display: inline-block;
    background: rgba(118, 109, 244, 0.08);
    color: #766DF4;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    padding: 10px 18px;
    cursor: pointer;
    overflow: hidden;
}
.file-upload input[type="file"],
.file-upload .file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
}

/* ---------- Formulaires des sections ---------- */
.dashboard-section label,
.dashboard-section .col-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #55596b;
}
.dashboard-section .form-control {
    font-size: 14px;
    min-height: 42px;
}
.dashboard-section textarea.form-control {
    min-height: 110px;
}

/* ---------- Sections CV (expériences, formations…) ---------- */
.details-section .experience,
.details-section .education-label,
.details-section .special-qualification {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: #55596b;
}
.details-section .action,
.details-section .remove,
.details-section .pencil {
    color: #9ba0af;
    cursor: pointer;
    margin-left: 8px;
}
.details-section .pencil:hover {
    color: #766DF4;
}
.details-section .remove:hover {
    color: #ff4f4f;
}
.details-section .add-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #766DF4;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    cursor: pointer;
}

/* ---------- CV : upload ---------- */
.add-cv input[type="file"] {
    font-size: 13px;
}
.download-cv {
    display: inline-block;
    margin-top: 10px;
    color: #766DF4;
    font-size: 13px;
    font-weight: 600;
}

/* ---------- Divers ---------- */
.dashboard-section .alert {
    font-size: 14px;
}
.font-12 {
    font-size: 12px;
}
.mobile-none {
    display: block;
}
