/* ===== ROOT VARIABLES ===== */

:root {
    --primary-color: #0a5b30;
    --secondary-color: #3a0ca3;
    --accent-color: #4cc9f0;
    --success-color: #4ade80;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --sidebar-bg: #1e293b;
    --sidebar-text: #cbd5e1;
    --sidebar-active: #4361ee;
    --header-bg: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

.btn-outline-primary {
    --bs-btn-color: #084829;
    --bs-btn-border-color: #084829;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #084829;
    --bs-btn-hover-border-color: #084829;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #084829;
    --bs-btn-active-border-color: #084829;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #084829;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #084829;
    --bs-gradient: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--light-bg);
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

.position-sticky {
    position: sticky;
    top: 15%;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.navbar {
    background-color: var(--header-bg);
    box-shadow: var(--shadow);
    padding: 5px 0 3px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.sidebar {
    background-color: #0a5a31;
    min-height: calc(100vh - 70px);
    padding: 25px 0;
    transition: var(--transition);
}

.sidebar .nav-link {
    color: #ffffff;
    padding: 14px 25px;
    margin: 5px 15px;
    border-radius: 10px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: #fff;
    color: #0a5a31;
    transform: translateX(5px);
}

.sidebar .nav-link i {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sidebar-header {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    padding: 10px 0;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 5px 0;
}

.sidebar-menu a {
    color: var(--sidebar-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 14px 25px;
    margin: 5px 15px;
    border-radius: 10px;
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: linear-gradient(90deg, rgb(8, 67, 39) 0%, 28.9615%, rgb(9, 85, 46) 57.9229%, 78.9615%, rgb(10, 91, 50) 100%);
    color: white;
    transform: translateX(5px);
}

.sidebar-menu i {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.main-content {
    padding: 25px;
    background-color: var(--light-bg);
    flex: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.dashboard-title {
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.dashboard-title i {
    margin-right: 12px;
    color: var(--primary-color);
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    transition: var(--transition);
    background-color: var(--card-bg);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    padding: 18px 25px;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.card-body {
    padding: 25px;
}

.stats-card {
    text-align: center;
    padding: 25px 15px;
    position: relative;
    border-top: 4px solid var(--primary-color);
}

.stats-card:nth-child(2) {
    border-top-color: var(--success-color);
}

.stats-card:nth-child(3) {
    border-top-color: var(--warning-color);
}

.stats-card:nth-child(4) {
    border-top-color: var(--accent-color);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(90deg, rgb(8, 67, 39) 0%, 28.9615%, rgb(9, 85, 46) 57.9229%, 78.9615%, rgb(10, 91, 50) 100%);
}

.stats-card:nth-child(2) .stats-icon {
    background-color: var(--success-color);
}

.stats-card:nth-child(3) .stats-icon {
    background-color: var(--warning-color);
}

.stats-card:nth-child(4) .stats-icon {
    background-color: var(--accent-color);
}

.stats-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 10px 0;
}

.stats-label {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.stats-change {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
}

.positive {
    color: #006425;
}

.negative {
    color: var(--danger-color);
}

.user-info {
    display: flex;
    align-items: center;
}

.user-details {
    margin-left: 12px;
}

.user-name {
    font-weight: 600;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.user-role {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 0;
}

.profile-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgb(8, 67, 39) 0%, 28.9615%, rgb(9, 85, 46) 57.9229%, 78.9615%, rgb(10, 91, 50) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.profile-section {
    margin-bottom: 30px;
}

.profile-header {
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    color: white;
    background: linear-gradient(90deg, rgb(8, 67, 39) 0%, 28.9615%, rgb(9, 85, 46) 57.9229%, 78.9615%, rgb(10, 91, 50) 100%);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 25px;
    border: 4px solid rgb(247 247 247);
}

.profile-name {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.profile-role {
    opacity: 0.9;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.profile-status {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.field-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.field {
    flex: 1;
    min-width: 200px;
}

.info-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.info-value {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1rem;
}

.info-display {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.info-display-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.info-display-value {
    color: var(--text-light);
}

.btn-primary {
    background: linear-gradient(90deg, rgb(8, 67, 39) 0%, 28.9615%, rgb(9, 85, 46) 57.9229%, 78.9615%, rgb(10, 91, 50) 100%);
    border-color: var(--primary-color);
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    transition: var(--transition);
    color: white;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--sidebar-bg);
    border-color: var(--sidebar-bg);
    transform: translateY(-2px);
}

.btn-outline-secondary,
.btn-outline-danger {
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-action {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-action:hover {
    color: var(--primary-color);
}

.btn-add {
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.btn-add:hover {
    color: var(--secondary-color);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: #f8f9fa;
}

.action-icons {
    display: flex;
    gap: 10px;
}

.action-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.action-icon:hover {
    background: linear-gradient(90deg, rgb(8, 67, 39) 0%, 28.9615%, rgb(9, 85, 46) 57.9229%, 78.9615%, rgb(10, 91, 50) 100%);
    color: white;
    transform: scale(1.1);
}

.action-icon.summry-btn {
    width: fit-content;
    padding: 10px;
    border-radius: 5px;
}

.status-yes {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #28a745;
    margin-right: 5px;
}

.status-no {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #dc3545;
    margin-right: 5px;
}

.toggle-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 5px;
}

.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 0 0 1px #e2e8f0;
}

.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table thead th {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 500;
    color: var(--text-dark);
    padding: 5px;
    white-space: nowrap;
    position: relative;
    font-size: 14px;
}

.table thead th.sortable {
    cursor: pointer;
}

.table thead th.sortable:hover {
    background-color: #f1f5f9;
}

.table thead th .sort-icon {
    margin-left: 5px;
    color: var(--text-light);
}

.table tbody td {
    padding: 5px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    font-size: 12px;
    font-weight: 500;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

.table-hover tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.checkbox-cell {
    width: 40px;
    text-align: center;
}

.action-cell {
    width: 80px;
    text-align: center;
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.table-actions {
    gap: 19px;
    align-items: center;
    width: 70%;
    margin-left: auto;
    display: flex;
    justify-content: space-between;
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-container input {
    padding-left: 45px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    height: 45px;
    transition: var(--transition);
    width: 100%;
}

.search-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.pagination-info {
    color: var(--text-light);
    font-size: 0.9rem;
}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 5px;
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(90deg, rgb(8, 67, 39) 0%, 28.9615%, rgb(9, 85, 46) 57.9229%, 78.9615%, rgb(10, 91, 50) 100%);
    border-color: var(--primary-color);
    color: white;
}

.entries-select {
    width: 80px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 5px 10px;
}

.contract-badge {
    display: inline-block;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 10px;
    margin: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.contract-badge:hover {
    background: linear-gradient(90deg, rgb(8, 67, 39) 0%, 28.9615%, rgb(9, 85, 46) 57.9229%, 78.9615%, rgb(10, 91, 50) 100%);
    color: white;
    transform: translateY(-2px);
}

.badge-mobile {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 5px;
}

.badge-mobile.c {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.badge-mobile.l {
    background-color: rgba(76, 201, 240, 0.1);
    color: var(--accent-color);
}

.badge-mobile.other {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.status-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.status-filter-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: var(--transition);
}

.status-filter-item:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.status-filter-item.active {
    background-color: rgba(67, 97, 238, 0.2);
}

.status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.status-hot {
    background-color: var(--danger-color);
    color: white;
}

.status-warm {
    background-color: var(--warning-color);
    color: white;
}

.status-cold {
    background-color: var(--accent-color);
    color: white;
}

.status-rth {
    background-color: var(--success-color);
    color: white;
}

.prospect-status-cell {
    text-align: center;
}

.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    background: linear-gradient(90deg, rgb(8, 67, 39) 0%, 28.9615%, rgb(9, 85, 46) 57.9229%, 78.9615%, rgb(10, 91, 50) 100%);
}

.activity-content {
    flex-grow: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.activity-desc {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.activity-time {
    color: var(--text-light);
    font-size: 0.8rem;
    white-space: nowrap;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.task-item:last-child {
    border-bottom: none;
}

.task-checkbox {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.task-checkbox.checked {
    background-color: #0a5a31;
    border-color: #0a5a31;
    color: white;
}

.task-content {
    flex-grow: 1;
}

.task-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.task-meta {
    color: var(--text-light);
    font-size: 0.85rem;
}

.task-priority {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
}

.priority-high {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.priority-medium {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.priority-low {
    background-color: rgba(76, 201, 240, 0.1);
    color: var(--accent-color);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.summary-item {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.summary-label {
    font-size: 14px;
    color: #6c757d;
}

.summary-value {
    font-weight: 600;
    margin-top: 5px;
}

.file-upload {
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}

.file-list {
    list-style-type: none;
    padding: 0;
}

.file-item {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-item:last-child {
    border-bottom: none;
}

.file-name {
    display: flex;
    align-items: center;
}

.file-name i {
    margin-right: 10px;
    color: var(--primary-color);
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.view-all i {
    margin-left: 5px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgb(8, 67, 39) 0%, 28.9615%, rgb(9, 85, 46) 57.9229%, 78.9615%, rgb(10, 91, 50) 100%);
}

.timeline-item:after {
    content: '';
    position: absolute;
    left: -24px;
    top: 11px;
    width: 2px;
    height: calc(100% + 19px);
    background-color: #e2e8f0;
}

.timeline-item:last-child:after {
    display: none;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-content h6 {
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-content p {
    color: var(--text-light);
    margin-bottom: 0;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    background: #09512c;
    color: white;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    padding: 20px 25px;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 20px 25px;
    border-radius: 0 0 15px 15px;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.progress-card {
    padding: 20px;
}

.progress-title {
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.progress-percent {
    color: var(--primary-color);
    font-weight: 700;
}

.progress {
    height: 10px;
    border-radius: 10px;
    background-color: #e2e8f0;
    margin-bottom: 20px;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, rgb(8, 67, 39) 0%, 28.9615%, rgb(9, 85, 46) 57.9229%, 78.9615%, rgb(10, 91, 50) 100%);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.dropdown-toggle::after {
    display: none;
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        min-height: auto;
        margin-bottom: 20px;
        width: 100%;
    }
    .main-content {
        padding: 15px;
    }
    .dashboard-title {
        font-size: 1.5rem;
    }
    .stats-number {
        font-size: 1.8rem;
    }
    .table-container {
        font-size: 0.85rem;
    }
    .pagination-container {
        flex-direction: column;
        gap: 15px;
    }
    .table-controls {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .status-filter {
        gap: 10px;
    }
    .field-group {
        flex-direction: column;
    }
    .summary-grid {
        grid-template-columns: 1fr;
    }
}