:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --dark-bg: #1e293b;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-bg);
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #ffffff 100%);
    min-height: 100vh;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.brand-logo {
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.login-form-container {
    max-width: 400px;
    margin: 0 auto;
}

.login-form .form-control,
.login-form .input-group-text {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-form .input-group-text {
    background-color: #f8fafc;
    border-right: none;
}

.login-form .form-control {
    border-left: none;
}
/*
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}
*/
/* Dashboard Styles */
.dashboard {
    min-height: 100vh;
    background-color: var(--light-bg);
}

.sidebar {
    background: white;
    border-right: 1px solid var(--border-color);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width:300px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.sidebar-brand h4 {
    margin: 0;
    font-weight: 700;
    color: var(--primary-color);
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1 1 auto;
    height: calc(100vh - 96px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2563eb #f1f1f1;
}

.sidebar-search {
    padding: 0 1.5rem 1rem;
    position: sticky;
    top: 0;
    background: white;
    z-index: 5;
}

.sidebar-search::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 0;
    height: 1px;
    background: var(--border-color);
    opacity: 0.6;
}

.sidebar-search-input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    background: var(--light-bg);
    color: var(--text-primary);
    font-size: 0.915rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-search-input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.sidebar-search-input::placeholder {
    color: var(--text-muted);
}

/* Chrome, Edge, Safari için özel scrollbar */
.sidebar-nav::-webkit-scrollbar {
    width: 8px;
    background: #f1f1f1;
    border-radius: 8px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 8px;
    min-height: 40px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-black);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0 8px 8px 0;
    margin-right: 1rem;
    font-weight:500;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.nav-link i {
    width: 20px;
    margin-right: 0;
    padding-right: 15px;
}

.main-content {
    margin-left: 280px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.topbar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    margin: -2rem -2rem 2rem -2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-right: 1rem;
    cursor: pointer;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-dropdown:hover {
    background-color: var(--light-bg);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 2rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-icon.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.stat-icon.success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
}

.stat-icon.warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: white;
}

.stat-icon.danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
}

.stat-icon.info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Data Tables */
.data-table {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    /* Dropdown menülerin kesilmemesi için taşmayı gizleme kaldırıldı */
    overflow: visible;
    position: relative;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    flex: 1 1 auto;
    text-align: left;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    justify-content: flex-end;
}

.table-responsive {
    overflow-x: auto;
    /* Düşeyde dropdown taşmalarını görünür kıl */
    overflow-y: visible;
}

/* Bootstrap select dropdown'un modal ve tablolar içinde arkada kalmaması için z-index yükselt */
.modal .dropdown-menu,
.data-table .dropdown-menu,
.form-select + .dropdown-menu {
    z-index: 2055; /* Modal (1050) üzerinde, tooltip/popover (1080) üstü */
}

/* Select dropdown taşma içinde kesilmesin */
.modal .table-responsive,
.modal .data-table {
    overflow: visible;
}

/* Bootstrap .dropdown-menu içindeki HTML entity'ler görünüm için; JS zaten decode ediyor */

/* Zimmet tablosundaki dropdown menülerin her şeyin üstünde görünmesi için */
.data-table .dropdown-menu {
    z-index: 3000;
    position: absolute;
}

/* Üç nokta menü butonunun katmanını da artır */
.data-table .dropdown,
.data-table .dropdown-toggle {
    position: relative;
    z-index: 3001;
}

/* Pagination çubuğu dropdown'u kapatmasın */
.data-table .pagination {
    position: relative;
    z-index: 10;
}

.table {
    margin: 0;
}

.table th {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-secondary);
    padding: 1rem;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

/* Status Badges */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.badge-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

/* Search and Filter */
.search-box {
    position: relative;
    max-width: 300px;
    display: flex;
    align-items: center;
}

.search-box input {
    padding-left: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding-right: 2.5rem;
}

.search-box i {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .topbar {
        margin: -1rem -1rem 1rem -1rem;
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .table-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
}

/* Dark Mode Support */
[data-theme="dark"] {
    --light-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-black: #000000;
    --border-color: #334155;
}

[data-theme="dark"] .sidebar,
[data-theme="dark"] .topbar,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .data-table {
    background-color: #334155;
    border-color: #475569;
}

[data-theme="dark"] .table th {
    background-color: #475569;
}

[data-theme="dark"] .table tbody tr:hover {
    background-color: #475569;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.calendar-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-header h6 {
    font-weight: 600;
    margin: 0;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav .btn {
    border: none;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.calendar-nav .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
}

.calendar-day-header {
    background: #f8fafc;
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.calendar-day {
    background: white;
    min-height: 100px;
    padding: 0.5rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    background: #f8fafc;
}

.calendar-day.other-month {
    background: #f8fafc;
    color: #94a3b8;
}

.calendar-day.today {
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid var(--primary-color);
}

.calendar-day .day-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-item {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-item:hover {
    transform: scale(1.02);
}

.event-item.urgent {
    background: var(--danger-color);
}

.event-item.meeting {
    background: var(--primary-color);
}

.event-item.training {
    background: var(--success-color);
}

.event-item.social {
    background: var(--warning-color);
}

/* Timeline Styles */
.timeline {
    padding: 1rem;
}

.timeline-item {
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 2rem;
    top: 3rem;
    bottom: -1.5rem;
    width: 2px;
    background: var(--border-color);
}

.timeline-date {
    flex-shrink: 0;
    width: 4rem;
    text-align: center;
    margin-right: 1rem;
}

.timeline-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.timeline-date .month {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.timeline-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.timeline-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.timeline-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.timeline-time,
.timeline-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Event List Styles */
.event-list {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.event-list-header {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.event-list-header h6 {
    margin: 0;
    font-weight: 600;
}

.event-list-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.event-list-item:hover {
    background: #f8fafc;
}

.event-list-item:last-child {
    border-bottom: none;
}

.event-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.event-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.event-actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 80px;
        padding: 0.25rem;
    }
    
    .event-item {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-date {
        width: auto;
        margin-right: 0;
        margin-bottom: 0.5rem;
        text-align: left;
    }
}

/* Report Styles */
.report-category-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.report-category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.report-category-card.active {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.category-icon.primary {
    background: var(--primary-color);
}

.category-icon.success {
    background: var(--success-color);
}

.category-icon.warning {
    background: var(--warning-color);
}

.category-icon.danger {
    background: var(--danger-color);
}

.report-category-card h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.report-category-card p {
    font-size: 0.875rem;
    margin: 0;
}

/* Quick Stats */
.quick-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.quick-stat:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.stat-change.positive {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.stat-change.negative {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

/* Salary Summary */
.salary-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.summary-item .label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.summary-item .value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Report Sections */
.report-section {
    animation: fadeIn 0.3s ease-in-out;
}

/* Chart Container */
canvas {
    max-height: 300px;
}

/* Responsive Reports */
@media (max-width: 768px) {
    .report-category-card {
        margin-bottom: 1rem;
    }
    
    .quick-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .btn-group {
        flex-wrap: wrap;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
}

/* Analytics Page Styles */
.demographic-stat {
    text-align: center;
    padding: 10px;
}

.demographic-stat .stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.demographic-stat .stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.tenure-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tenure-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.tenure-stat .stat-icon {
    width: 40px;
    height: 40px;
    background: #e0e7ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

.tenure-stat .stat-content {
    flex: 1;
}

.tenure-stat .stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.tenure-stat .stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.leave-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leave-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.stat-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.department-performance {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dept-perf-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dept-name {
    width: 80px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.dept-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.dept-progress {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.dept-score {
    width: 40px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    text-align: right;
}

.salary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.salary-stat {
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}

.salary-stat .stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.salary-stat .stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.turnover-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.turnover-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.turnover-stat .stat-icon {
    width: 40px;
    height: 40px;
    background: #e0e7ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

.turnover-stat .stat-content {
    flex: 1;
}

.turnover-stat .stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.turnover-stat .stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Chart container styles */
canvas {
    max-height: 300px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .salary-stats {
        grid-template-columns: 1fr;
    }
    
    .tenure-stats,
    .turnover-stats {
        gap: 10px;
    }
    
    .tenure-stat,
    .turnover-stat {
        padding: 10px;
    }
    
    .dept-perf-item {
        gap: 8px;
    }
    
    .dept-name {
        width: 60px;
        font-size: 0.8rem;
    }
}

/* Permission Matrix Styles */
.role-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.role-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.role-item:hover {
    background: #e0e7ff;
    border-color: #3b82f6;
}

.role-item.active {
    background: #dbeafe;
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.role-info {
    flex: 1;
}

.role-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.role-users {
    font-size: 0.875rem;
    color: #6b7280;
}

.role-actions {
    display: flex;
    gap: 5px;
}

.permission-matrix {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.matrix-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.matrix-header .module-name,
.matrix-header .permission-type {
    padding: 12px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    border-right: 1px solid #e5e7eb;
}

.matrix-header .module-name {
    text-align: left;
}

.matrix-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.matrix-row:hover {
    background: #f9fafb;
}

.matrix-row:last-child {
    border-bottom: none;
}

.matrix-row .module-name {
    padding: 12px;
    font-weight: 500;
    color: #1f2937;
    border-right: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
}

.permission-cell {
    padding: 12px;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.permission-cell:last-child {
    border-right: none;
}

.permission-cell input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.permission-cell input[type="radio"]:checked {
    accent-color: #3b82f6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.user-title {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Permission type indicators */
.permission-type {
    font-size: 0.875rem;
}

.permission-type:nth-child(2) {
    color: #ef4444;
}

.permission-type:nth-child(3) {
    color: #3b82f6;
}

.permission-type:nth-child(4) {
    color: #f59e0b;
}

.permission-type:nth-child(5) {
    color: #10b981;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .permission-matrix {
        font-size: 0.875rem;
    }
    
    .matrix-header,
    .matrix-row {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    }
    
    .matrix-header .module-name,
    .matrix-row .module-name,
    .permission-cell {
        padding: 8px;
    }
    
    .role-item {
        padding: 10px;
    }
    
    .role-actions {
        flex-direction: column;
        gap: 3px;
    }
    
    .role-actions .btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .matrix-header,
    .matrix-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .matrix-header .permission-type,
    .permission-cell {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .matrix-row .module-name {
        background: #f3f4f6;
        font-weight: 600;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
}

/* Contract Management Styles */
.contract-info {
    display: flex;
    flex-direction: column;
}

.contract-number {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.contract-title {
    font-size: 0.875rem;
    color: #6b7280;
}

.template-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.template-icon {
    width: 50px;
    height: 50px;
    background: #e0e7ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
}

.template-content {
    flex: 1;
}

.template-content h6 {
    margin-bottom: 8px;
    color: #1f2937;
}

.template-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 15px;
}

.template-actions {
    display: flex;
    gap: 8px;
}

.contract-timeline {
    position: relative;
    padding-left: 30px;
}

.contract-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #3b82f6;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timeline-header h6 {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
}

.timeline-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.timeline-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #374151;
}

/* Contract status badges */
.badge.bg-primary {
    background-color: #3b82f6 !important;
}

.badge.bg-info {
    background-color: #06b6d4 !important;
}

.badge.bg-warning {
    background-color: #f59e0b !important;
}

.badge.bg-success {
    background-color: #10b981 !important;
}

.badge.bg-danger {
    background-color: #ef4444 !important;
}

.badge.bg-secondary {
    background-color: #6b7280 !important;
}

/* Tab customization */
.nav-tabs .nav-link {
    border: none;
    color: #6b7280;
    font-weight: 500;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-tabs .nav-link:hover {
    color: #3b82f6;
    background: #f8fafc;
    border: none;
}

.nav-tabs .nav-link.active {
    color: #3b82f6;
    background: #dbeafe;
    border: none;
    border-bottom: 2px solid #3b82f6;
}

.nav-tabs .nav-link i {
    width: 16px;
    height: 16px;
}

/* Button group styling */
.btn-group .btn {
    border-radius: 6px;
    margin-right: 5px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .template-info {
        flex-direction: column;
        text-align: center;
    }
    
    .template-actions {
        justify-content: center;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.875rem;
    }
    
    .nav-tabs .nav-link i {
        width: 14px;
        height: 14px;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-group .btn {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .btn-group .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .contract-timeline {
        padding-left: 20px;
    }
    
    .timeline-marker {
        left: -15px;
        width: 10px;
        height: 10px;
    }
    
    .timeline-content {
        padding: 12px;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .nav-tabs .nav-link {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

/* Directory Styles */
.directory-grid {
    margin-top: 1rem;
}

.contact-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.contact-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f8f9fa;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.status-indicator.online {
    background-color: #28a745;
}

.status-indicator.offline {
    background-color: #6c757d;
}

.status-indicator.away {
    background-color: #ffc107;
}

.contact-info {
    text-align: center;
}

.contact-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-position {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-department {
    color: #007bff;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-details {
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.contact-item i {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    color: #007bff;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.contact-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* List View Styles */
.directory-list {
    margin-top: 1rem;
}

.contact-info-list {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-email {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Quick Dial Styles */
.quick-dial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-dial-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.quick-dial-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.quick-dial-icon {
    width: 50px;
    height: 50px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #fff;
}

.quick-dial-icon i {
    width: 24px;
    height: 24px;
}

.quick-dial-info {
    flex: 1;
}

.quick-dial-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.quick-dial-number {
    font-size: 1.1rem;
    color: #007bff;
    font-weight: 600;
}

/* Search Box Styles */
.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    width: 18px;
    height: 18px;
}

.search-input {
    padding-left: 40px;
    border-radius: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-card {
        padding: 1rem;
    }
    
    .contact-avatar {
        width: 60px;
        height: 60px;
    }
    
    .quick-dial-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .contact-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .contact-info-list {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .quick-dial-item {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-dial-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* --- Toplantı Odası ve Takvim Modülü --- */
.room-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.room-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e9ecef;
  padding: 1.5rem;
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: box-shadow 0.2s, border 0.2s;
}
.room-card.available { border-left: 5px solid #28a745; }
.room-card.occupied { border-left: 5px solid #dc3545; opacity: 0.85; }
.room-card.maintenance { border-left: 5px solid #ffc107; opacity: 0.7; }
.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.room-name { font-weight: 600; font-size: 1.1rem; color: #2c3e50; }
.room-status {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  background: #f1f3f4;
  color: #888;
}
.room-card.available .room-status { background: #e9f7ef; color: #28a745; }
.room-card.occupied .room-status { background: #fdecea; color: #dc3545; }
.room-card.maintenance .room-status { background: #fffbe6; color: #ffc107; }
.room-details {
  margin-bottom: 1rem;
}
.room-capacity, .room-location, .room-equipment, .current-meeting {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.25rem;
}
.room-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.current-meeting {
  color: #007bff;
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

/* Calendar Layout – toplantı odası takvimi (etkinlik takviminden izole) */
#calendar-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 1.5rem 1rem;
}
#calendar-container .calendar-grid {
  display: flex;
  flex-direction: row;
  gap: 0;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}
#calendar-container .calendar-sidebar {
  background: #f1f3f4;
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.5rem 0.25rem 0.5rem 0.5rem;
  border-right: 1px solid #e9ecef;
}
#calendar-container .time-slots {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 0.95rem;
  color: #888;
}
.time-slot { height: 30px; }
#calendar-container .calendar-main {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 0;
}
#calendar-container .calendar-days {
  display: flex;
  flex: 1;
  flex-direction: row;
  width: 100%;
}
#calendar-container .calendar-day {
  flex: 1;
  min-width: 120px;
  border-right: 1px solid #e9ecef;
  background: #fff;
  display: flex;
  flex-direction: column;
}
#calendar-container .calendar-day:last-child { border-right: none; }
#calendar-container .day-header {
  background: #f8fafc;
  text-align: center;
  font-weight: 600;
  color: #007bff;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 1rem;
}
#calendar-container .day-content {
  position: relative;
  min-height: 360px;
  padding: 0.5rem 0.25rem;
}
#calendar-container .reservation-slot {
  position: absolute;
  left: 8px;
  right: 8px;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.5rem 0.75rem;
  font-size: 0.97rem;
  z-index: 2;
  border: 2px solid #fff;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.reservation-slot:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  filter: brightness(1.05);
}
.reservation-info {
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 1200px) {
  .room-grid { flex-direction: column; }
  #calendar-container .calendar-days { flex-direction: column; }
  #calendar-container .calendar-day { min-width: 100%; border-right: none; border-bottom: 1px solid #e9ecef; }
  #calendar-container .calendar-day:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
  .room-card { min-width: 100%; max-width: 100%; }
  #calendar-container .calendar-grid { flex-direction: column; }
  #calendar-container .calendar-sidebar { flex-direction: row; min-width: 100%; border-right: none; border-bottom: 1px solid #e9ecef; padding: 0.5rem; }
  #calendar-container .calendar-main { flex-direction: column; }
  #calendar-container .calendar-days { flex-direction: column; }
  #calendar-container .calendar-day { min-width: 100%; border-right: none; border-bottom: 1px solid #e9ecef; }
  #calendar-container .calendar-day:last-child { border-bottom: none; }
}

/* Minimal Stat Card - Dashboard için */
.stat-card-minimal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.stat-card-minimal .stat-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.stat-card-minimal .stat-content {
    display: flex;
    flex-direction: column;
}

.stat-card-minimal .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card-minimal .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Geçici olarak gizlenen menü öğeleri */
.nav-item[data-menu-filter="Resmi Tatil Takvimi"] {
    display: none;
}