/* ===== GENERAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --danger: #f5576c;
    --success: #00d084;
    --warning: #ffa502;
    --info: #4facfe;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%) !important;
    box-shadow: var(--shadow);
    padding: 15px 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 22px;
    font-weight: 700;
    color: white !important;
    letter-spacing: 0.5px;
}

.navbar-brand i {
    margin-right: 10px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: 0.3s ease;
    margin: 0 10px;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    position: fixed;
    left: -250px;
    top: 56px;
    width: 250px;
    height: calc(100vh - 56px);
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    padding-top: 20px;
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 0 20px;
    margin-bottom: 30px;
    cursor: pointer;
    color: white;
    font-size: 20px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: 0.3s ease;
    border-left: 4px solid transparent;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
    color: white;
    padding-left: 25px;
}

.menu-item i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.menu-item span {
    font-weight: 500;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 0;
    padding: 30px 20px;
    min-height: calc(100vh - 56px);
    transition: margin-left 0.3s ease;
}

@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
    }
}

/* ===== PAGE HEADER ===== */
.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    color: var(--dark);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.page-header p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* ===== STATISTICS CARDS ===== */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-link {
    color: inherit;
    text-decoration: none;
}

.stat-link:hover {
    color: inherit;
    text-decoration: none;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}

.stat-content p {
    color: #999;
    font-size: 14px;
    margin: 5px 0 0 0;
}

/* ===== FORM CARD ===== */
.form-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    display: block;
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: 0.3s ease;
    font-size: 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.form-actions .btn {
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-secondary {
    background: #e0e0e0;
    border: none;
    color: var(--dark);
}

.btn-secondary:hover {
    background: #d0d0d0;
    color: var(--dark);
}

.btn-info {
    background: var(--info);
    border: none;
    color: white;
}

.btn-warning {
    background: var(--warning);
    border: none;
    color: white;
}

.btn-danger {
    background: var(--danger);
    border: none;
    color: white;
}

.btn-success {
    background: var(--success);
    border: none;
    color: white;
}

/* ===== TABLE CARD ===== */
.table-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.table {
    margin: 0;
    border-collapse: collapse;
}

.table thead {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.table thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f9f9f9;
}

.table .badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== QUICK LINKS ===== */
.quick-link-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: 0.3s ease;
}

.quick-link-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.quick-link-card h4 {
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.quick-link-card p {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

/* ===== FILTER SECTION ===== */
.filter-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.filter-card h5 {
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 700;
}

/* ===== FOLLOW-UP CARDS ===== */
.followup-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    margin-bottom: 20px;
}

.followup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.followup-info h5 {
    margin: 0 0 5px 0;
    color: var(--dark);
    font-weight: 700;
}

.followup-info p {
    margin: 0;
    color: #999;
    font-size: 13px;
}

.followup-date {
    text-align: right;
    font-weight: 600;
    color: var(--dark);
}

.followup-form {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(0, 208, 132, 0.1);
    color: var(--success);
}

.alert-danger {
    background: rgba(245, 87, 108, 0.1);
    color: var(--danger);
}

.alert-info {
    background: rgba(79, 172, 254, 0.1);
    color: var(--info);
}

.alert-warning {
    background: rgba(255, 165, 2, 0.1);
    color: var(--warning);
}

.alert i {
    margin-right: 10px;
}

/* ===== FOOTER ===== */
.footer {
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-top: 50px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .page-header h2 {
        font-size: 22px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .followup-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .followup-date {
        text-align: left;
        margin-top: 10px;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .table-responsive {
        font-size: 12px;
    }
}

/* ===== SMOOTH TRANSITIONS ===== */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button, a {
    transition: all 0.3s ease;
}

/* ===== INFO CARD ===== */
.info-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.info-card h5 {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.info-table {
    width: 100%;
}

.info-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.info-table td {
    padding: 10px 0;
}

.info-table td:first-child {
    width: 40%;
    color: #666;
    font-weight: 600;
}

/* ===== MODAL STYLES ===== */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 12px 12px 0 0;
}

.modal-header h5 {
    font-weight: 700;
}

.modal-footer {
    border-top: 1px solid #f0f0f0;
}

/* ===== ADD BUTTON ===== */
.add-button {
    margin-bottom: 20px;
}

.add-button .btn {
    padding: 10px 20px;
}

/* ===== NAV TABS ===== */
.nav-tabs {
    border-bottom: 2px solid #e0e0e0;
}

.nav-tabs .nav-link {
    color: #999;
    border: none;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: none;
}

/* ===== LOADING STATE ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===== SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

/* ===== DOCUMENTS LIST ===== */
.documents-list {
    background: white;
    border-radius: 10px;
    padding: 20px;
}
#sidebarToggle{
    border:1px solid rgba(255,255,255,.4);
    color:#fff;
}

#sidebarToggle:hover{
    background:rgba(255,255,255,.15);
}