/* Custom CSS for DISGS Dacia Management System */

:root {
    --primary-color: #646b52;
    --primary-dark: #4d543f;
    --primary-light: #7a8168;
    --dark-gray: #5A5E60;
    --warm-gray: #8A7F66;
    --light-gray: #C6C6C6;
    --font-title: 'DaciaBlock';
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --shadow-light: 0 2px 8px rgba(100,107,82,0.08);
    --shadow-medium: 0 4px 16px rgba(100,107,82,0.15);
    --shadow-heavy: 0 8px 32px rgba(100,107,82,0.25);
    --gradient-primary: linear-gradient(135deg, #646b52 0%, #4d543f 100%);
    --gradient-sidebar: linear-gradient(180deg, #646b52 0%, #5a5e60 100%);
    --border-radius: 12px;
    --border-radius-large: 18px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #d6d2c4 0%, #e8e4d6 100%);
    color: var(--dark-gray);
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn-custom, .login-title {
    font-family: var(--font-title);
    color: var(--primary-color);
}

.navbar {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-medium);
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    border-radius: var(--border-radius);
    transform: translateY(-1px);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.navbar-brand, .navbar-brand i.fa-car {
    color: #fff !important;
}

/* Quick Access Cards */
.quick-access-card {
    cursor: pointer;
    transition: var(--transition);
    border: none;
    border-radius: var(--border-radius-large);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.quick-access-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    background: rgba(255, 255, 255, 1);
}

.quick-access-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.8rem;
    background: var(--gradient-primary) !important;
    color: #fff !important;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.quick-access-card:hover .quick-access-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-heavy);
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    background: rgba(255, 255, 255, 1);
}

.card-header {
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--border-radius-large) var(--border-radius-large) 0 0 !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.card-header .m-0.font-weight-bold.text-primary {
    color: #fff !important;
}

/* KPI Cards */
.border-left-primary {
    border-left: 0.25rem solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--dark-gray) !important;
}

.border-left-info {
    border-left: 0.25rem solid var(--light-gray) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--warm-gray) !important;
}

.text-xs {
    font-size: 0.7rem;
}

.text-gray-800 {
    color: var(--warm-gray) !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

/* Chart Containers */
.chart-area {
    position: relative;
    height: 20rem;
    width: 100%;
}

.chart-pie {
    position: relative;
    height: 15rem;
    width: 100%;
}

/* Activity List */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e3e6f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #646b52;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.8rem;
    color: #858796;
}

/* Task List */
.task-list {
    max-height: 300px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e3e6f0;
}

.task-item:last-child {
    border-bottom: none;
}

.task-text {
    flex: 1;
    margin-left: 0.5rem;
    font-weight: 500;
}

/* Route List Styles */
.route-list {
    max-height: 300px;
    overflow-y: auto;
}

.route-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #e3e6f0;
    transition: all 0.3s ease;
}

.route-item:hover {
    background-color: #f8f9fc;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.route-item:last-child {
    border-bottom: none;
}

.route-info h6 {
    margin: 0;
    font-weight: 600;
    color: #5a5c69;
}

.route-stats {
    display: flex;
    gap: 0.5rem;
}

/* Vehicle List Styles */
.vehicle-list {
    max-height: 300px;
    overflow-y: auto;
}

.vehicle-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e3e6f0;
    transition: all 0.3s ease;
}

.vehicle-item:hover {
    background-color: #f8f9fc;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.vehicle-item:last-child {
    border-bottom: none;
}

.vehicle-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.vehicle-info {
    flex: 1;
}

.vehicle-info h6 {
    margin: 0;
    font-weight: 600;
    color: #5a5c69;
}

.vehicle-status {
    display: flex;
    gap: 0.5rem;
}

/* Document List Styles */
.document-list {
    max-height: 300px;
    overflow-y: auto;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e3e6f0;
    transition: all 0.3s ease;
}

.document-item:hover {
    background-color: #f8f9fc;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.document-item:last-child {
    border-bottom: none;
}

.document-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
}

.document-info h6 {
    margin: 0;
    font-weight: 600;
    color: #5a5c69;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
}

/* Report Type Cards */
.report-type-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid #e3e6f0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.report-type-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.report-type-card.active {
    border-color: var(--primary-color);
    background-color: #f8f9ff;
}

.report-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.report-info h6 {
    margin: 0;
    font-weight: 600;
    color: #5a5c69;
}

.report-info small {
    color: #858796;
}

/* Contract Category Cards */
.category-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 0.75rem;
    background-color: #6c6e4f !important;
    color: #fff !important;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

.category-card h6, .category-card small, .category-card .badge {
    color: #fff !important;
}

.category-card h6 {
    margin: 0;
    font-weight: 600;
}

.category-card small {
    opacity: 0.8;
}

.category-card .badge {
    background: #fff !important;
    color: #6c6e4f !important;
    border-radius: 1rem !important;
    padding: 0.35em 0.9em !important;
    font-weight: 600;
    font-size: 1em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Contract Workflow Steps */
.workflow-step {
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.workflow-step:hover {
    background-color: #f8f9fc;
    transform: translateY(-2px);
}

.workflow-step.active {
    background-color: #e3f2fd;
    border: 2px solid var(--primary-color);
}

.workflow-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.25rem;
}

.workflow-step h6 {
    margin: 0.5rem 0 0.25rem 0;
    font-weight: 600;
    color: #5a5c69;
}

.workflow-step small {
    color: #858796;
    font-size: 0.8rem;
}

/* Contract Alerts */
.contract-alert {
    display: flex;
    align-items: center;
    padding: 0.45rem;
    margin-bottom: 0.3rem;
    border-radius: 0.3rem;
    border-left: 2px solid;
    background-color: #f8f9fc;
    transition: all 0.3s ease;
}

.contract-alert:hover {
    transform: translateX(5px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.contract-alert.urgent {
    border-left-color: var(--danger-color);
    background-color: #fff5f5;
}

.contract-alert.warning {
    border-left-color: var(--warm-gray);
    background-color: #fffbf0;
}

.contract-alert.info {
    border-left-color: var(--light-gray);
    background-color: #f0f9ff;
}

.contract-alert.success {
    border-left-color: var(--dark-gray);
    background-color: #f0fff4;
}

.alert-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
    font-size: 1rem;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 0.25rem;
}

.alert-time {
    font-size: 0.8rem;
    color: #858796;
}

/* Content Sections */
.content-section {
    display: block;
}

.content-section:not(:first-child) {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chart-area {
        height: 15rem;
    }
    
    .chart-pie {
        height: 12rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .route-item,
    .vehicle-item,
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .route-stats,
    .vehicle-status,
    .document-actions {
        align-self: flex-end;
    }
    
    .quick-access-card {
        margin-bottom: 1rem;
    }
    
    .workflow-step {
        margin-bottom: 1rem;
    }
    
    .category-card {
        margin-bottom: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--light-gray);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--warm-gray);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Styles */
.btn-custom {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-family: var(--font-title);
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background: var(--dark-gray);
    color: #fff;
}

/* Form Styles */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
    background: #fff;
    color: var(--dark-gray);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(209, 65, 36, 0.15);
}

/* Table Styles */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fc;
    border-bottom: 2px solid #e3e6f0;
    font-weight: 600;
    color: #5a5c69;
}

.table tbody tr:hover {
    background-color: #f8f9fc;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fc;
    color: var(--primary-color);
}

/* Progress Bar Styles */
.progress {
    border-radius: 0.5rem;
    background-color: #e3e6f0;
}

.progress-bar {
    border-radius: 0.5rem;
    transition: width 0.6s ease;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
    background-color: #fff;
    border: 1px solid var(--light-gray);
}

.modal-header {
    background: #d6d2c4 !important;
    color: #fff !important;
    border-radius: 0.75rem 0.75rem 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Transport Specific Styles */
.transport-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-active {
    background-color: var(--dark-gray);
    animation: pulse 2s infinite;
}

.status-delayed {
    background-color: var(--warm-gray);
    animation: pulse 1s infinite;
}

.status-scheduled {
    background-color: var(--primary-color);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Map Container Styles */
.map-container {
    height: 400px;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #e3e6f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #858796;
}

/* Real-time Updates */
.real-time-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--dark-gray);
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Navigation Improvements */
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

/* Quick Access Improvements */
.quick-access-card .card-body {
    padding: 1.5rem;
}

.quick-access-card:hover .quick-access-icon {
    transform: scale(1.1);
}

/* Link Improvements */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
}

/* Contract Status Badges */
.contract-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.contract-status.draft {
    background-color: #e3e6f0;
    color: #5a5c69;
}

.contract-status.review {
    background-color: #fff3cd;
    color: #856404;
}

.contract-status.negotiation {
    background-color: #d1ecf1;
    color: #0c5460;
}

.contract-status.active {
    background-color: #d4edda;
    color: #155724;
}

.contract-status.expired {
    background-color: #f8d7da;
    color: #721c24;
}

/* Contract Priority Indicators */
.priority-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.priority-low {
    background-color: var(--dark-gray);
}

.priority-medium {
    background-color: var(--warm-gray);
}

.priority-high {
    background-color: var(--primary-color);
}

.priority-urgent {
    background-color: var(--primary-color);
    animation: pulse 1s infinite;
}

/* Contract Search Highlight */
.search-highlight {
    background-color: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 0.25rem;
}

/* Contract Analytics Charts */
.analytics-chart {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Contract Workflow Progress */
.workflow-progress {
    position: relative;
    height: 4px;
    background-color: #e3e6f0;
    border-radius: 2px;
    margin: 1rem 0;
}

.workflow-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--dark-gray));
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* Contract Document Preview */
.document-preview {
    max-width: 100%;
    height: 200px;
    border: 1px solid #e3e6f0;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fc;
    color: #858796;
}

/* Contract Timeline */
.contract-timeline {
    position: relative;
    padding-left: 2rem;
}

.contract-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e3e6f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.timeline-date {
    font-size: 0.8rem;
    color: #858796;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 0.25rem;
}

.timeline-description {
    color: #858796;
    font-size: 0.9rem;
} 

.custom-dashboard-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.custom-dashboard-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px 0 rgba(60,60,60,0.08);
    padding: 1.75rem 1.4rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 210px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}
.custom-dashboard-card:hover {
    box-shadow: 0 8px 32px 0 rgba(60,60,60,0.16);
    transform: translateY(-4px) scale(1.03);
}
.custom-dashboard-icon {
    margin-bottom: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 39px;
    position: relative;
    z-index: 2;
}
.custom-dashboard-title {
    font-family: var(--font-title);
    font-size: 1.12rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.35rem;
    text-align: center;
    position: relative;
    z-index: 2;
}
.custom-dashboard-desc {
    color: #5A5E60;
    font-size: 0.77rem;
    text-align: center;
    font-weight: 400;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}
@media (max-width: 1100px) {
    .custom-dashboard-cards {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .custom-dashboard-card {
        width: 90%;
        max-width: 400px;
    }
} 

.fa-file-contract.text-primary {
    color: #6c6e4f !important;
}

.btn-primary, .btn-primary:focus, .btn-primary:active, .btn-primary:visited {
    background-color: #6c6e4f !important;
    border-color: #fff !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #5a5e60 !important;
    border-color: #fff !important;
    color: #fff !important;
}

.btn-primary .fa-edit {
    color: #fff !important;
} 

.btn-outline-light {
    color: #fff !important;
    border-color: #fff !important;
    background: transparent !important;
}
.btn-outline-light .fa-edit {
    color: #fff !important;
}
.btn-outline-light:hover, .btn-outline-light:focus {
    background: #fff !important;
    color: #6c6e4f !important;
    border-color: #fff !important;
}
.btn-outline-light:hover .fa-edit, .btn-outline-light:focus .fa-edit {
    color: #6c6e4f !important;
} 

/* Stiluri custom pentru dashboard cu meniu lateral și carduri moderne */

.contracte-dashboard-bg {
    background:#d6d2c4;
    min-height: 100vh;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar-custom {
    width: 280px;
    background: var(--gradient-sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 32px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-heavy);
    backdrop-filter: blur(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-custom.collapsed {
    transform: translateX(-280px);
}

/* Buton pentru toggle sidebar */
.sidebar-toggle-btn {
    position: fixed;
    left: 280px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 0 8px 8px 0;
    color: white;
    font-size: 14px;
    cursor: pointer;
    z-index: 101;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.sidebar-toggle-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-heavy);
}



.sidebar-toggle-btn.collapsed {
    left: 0;
}

.sidebar-toggle-btn.collapsed i {
    transform: rotate(180deg);
}

.sidebar-title {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: 3px;
    font-family: var(--font-title, 'Segoe UI', sans-serif);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    border-radius: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-bottom: 1rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 0 25px 25px 0;
    text-decoration: none;
    transition: var(--transition);
    margin: 0.2rem 0;
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    border-radius: 0 25px 25px 0;
}

.sidebar-link:hover::before,
.sidebar-link.active::before {
    width: 100%;
}

.sidebar-link.active, .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
}

.sidebar-link i {
    font-size: 1.4rem;
    transition: var(--transition);
    z-index: 1;
}

.sidebar-link:hover i,
.sidebar-link.active i {
    transform: scale(1.1);
    color: #fff;
}

.main-content-custom {
    margin-left: 280px;
    padding: 2rem 2rem 2rem 2rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content-custom.expanded {
    margin-left: 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-title {
    font-size: 1.32rem;
    font-family: var(--font-title, 'Segoe UI', sans-serif);
    color: #646b52;
    margin-bottom: 0.12rem;
}

.dashboard-subtitle {
    font-size: 0.66rem;
    color: #888;
    margin-bottom: 0;
}

.contract-nou-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contract-nou-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.contract-nou-btn:hover::before {
    left: 100%;
}

.contract-nou-btn:hover {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-heavy);
    transform: translateY(-2px);
}

.dashboard-cards-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
    padding-top: 0.5rem;
}

.dashboard-card,
.dashboard-card-email {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    padding: 1.2rem 0.8rem 1rem 0.8rem;
    min-width: 150px;
    max-width: 150px;
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-heavy);
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(100, 107, 82, 0.3);
}
.dashboard-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.dashboard-card:hover .dashboard-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-medium);
}
.dashboard-card-icon-purple {
    background: #e6e6fa;
    color: #6c63ff;
}
.dashboard-card-icon-pink {
    background: #ffe6ea;
    color: #ff6f91;
}
.dashboard-card-icon-yellow {
    background: #fff7e6;
    color: #ffb400;
}
.dashboard-card-icon-blue {
    background: #e6f0ff;
    color: #3b82f6;
}
.dashboard-card-icon-green {
    background: #e6ffe6;
    color: #28a745;
}
.dashboard-card-title {
    font-size: 0.57rem;
    font-weight: 600;
    color: #646b52;
    margin-bottom: 0.09rem;
    text-align: center;
}
.dashboard-card-value {
    font-size: 0.9rem;
    font-weight: bold;
    color: #646b52;
    margin-bottom: 0.09rem;
    text-align: center;
}
.dashboard-card-desc {
    font-size: 0.54rem;
    color: #888;
    text-align: center;
}

.dashboard-card-email {
    min-width: 132px;
    max-width: 156px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dashboard-card-title, .dashboard-card-value {
    font-family: 'DaciaBlock', sans-serif;
}

@media (max-width: 1100px) {
    .dashboard-cards-row {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }
    .dashboard-card {
        min-width: 200px;
        max-width: 200px;
    }
    .main-content-custom {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    .sidebar-custom {
        width: 100px;
        padding-top: 16px;
    }
    .main-content-custom {
        margin-left: 100px;
    }
    .sidebar-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    .sidebar-link {
        font-size: 0.9rem;
        padding: 0.7rem 0.7rem;
        justify-content: center;
    }
    .sidebar-link span {
        display: none;
    }
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .sidebar-custom {
        width: 80px;
    }
    .main-content-custom {
        margin-left: 80px;
        padding: 1rem 0.5rem;
    }
    .dashboard-card {
        min-width: 150px;
        max-width: 150px;
    }
    .dashboard-header {
        padding: 1rem;
    }
} 

.btn-back-dashboard {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.btn-back-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.btn-back-dashboard:hover::before {
    left: 100%;
}

.btn-back-dashboard:hover {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-heavy);
    transform: translateY(-2px);
    text-decoration: none;
} 

.custom-dashboard-title, .custom-dashboard-desc {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
} 

.dashboard-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  border-radius: 2rem;
  z-index: 1;
} 

/* Stiluri îmbunătățite pentru butoane */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
}

.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(100,107,82,0.15) !important;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #646b52 0%, #4d543f 100%) !important;
    border-color: #646b52 !important;
    color: #fff !important;
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-color: #28a745 !important;
    color: #fff !important;
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

/* Stiluri pentru alerta de contracte expirate */
#expiringContractsAlert {
    margin: 12px !important;
    padding: 0.6rem !important;
    font-size: 0.8rem !important;
}

#expiringContractsAlert .alert-heading {
    font-size: 0.9rem !important;
    margin-bottom: 0.3rem !important;
}

#expiringContractsAlert p {
    font-size: 0.75rem !important;
    margin-bottom: 0.3rem !important;
}

#expiringContractsAlert .btn {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.5rem !important;
}

#expiringContractsAlert .fas {
    font-size: 1rem !important;
}

/* Scrollbar personalizat */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(100, 107, 82, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #646b52 0%, #4d543f 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4d543f 0%, #646b52 100%);
}

/* Animații pentru loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.dashboard-card {
    animation: fadeInUp 0.6s ease-out;
}

.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }
.dashboard-card:nth-child(5) { animation-delay: 0.5s; }
.dashboard-card:nth-child(6) { animation-delay: 0.6s; }

/* Stiluri pentru editorul de contract nou */
.new-contract-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.new-contract-header h3 {
    color: var(--primary-color);
    font-family: var(--font-title);
    font-weight: 600;
}

.new-contract-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.new-contract-form .form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.new-contract-form .form-control {
    border-radius: var(--border-radius);
    border: 1px solid rgba(100, 107, 82, 0.2);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
}

.new-contract-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(100, 107, 82, 0.15);
    background: rgba(255, 255, 255, 1);
}

.new-contract-table-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
}

.new-contract-table-section h5 {
    color: var(--primary-color);
    font-family: var(--font-title);
    font-weight: 600;
    margin-bottom: 0;
}

#newContractTableContainer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

/* Stiluri pentru butoanele din editorul de contract nou */
#newContractEditor .btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: var(--transition);
}

#newContractEditor .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

#newContractEditor .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: #fff;
}

#newContractEditor .btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

#newContractEditor .btn-outline-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

#newContractEditor .btn-outline-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Stiluri pentru input group în editorul de contract nou */
#newContractEditor .input-group {
    border-radius: var(--border-radius);
    overflow: hidden;
}

#newContractEditor .input-group .form-control {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#newContractEditor .input-group .btn {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-color: rgba(100, 107, 82, 0.2);
}

#newContractEditor .input-group .btn:hover {
    border-color: var(--primary-color);
}

#newContractEditor .form-text {
    font-size: 0.8rem;
    color: rgba(100, 107, 82, 0.7);
    margin-top: 0.25rem;
}