/* Custom CSS for Periyodik Kontrol Takip Sistemi */

/* Additional styles can be added here */

.page-header {
    background-color: #fff;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.page-title {
    font-size: 1.4rem;
    font-weight: 600;
    /* color: #333; */
}

/* Form Elements */
.dropdown-menu,
.page-link,
.form-control {
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Button Styles */
.btn {
    font-size: 0.8rem;
    border-radius: 6px;
    padding: 8px 20px;
}

h2 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

.stat-card {
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.table-actions .btn {
    padding: 4px 10px;
    font-size: 0.875rem;
}

.sidebar-brand {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sidebar-brand h5 {
    color: white;
    margin: 0;
    font-weight: 600;
}

.profile-dropdown {
    cursor: pointer;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #e8f4fd;
}

.form-section {
    /* background-color: #f8f9fa; */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    /* color: #495057; */
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

/* Select2 Bootstrap Teması ve Küçük Boyut Ayarları */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 38px !important;
    font-size: 0.875rem !important;
    border-color: #ced4da !important;
    border-radius: 0.375rem !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    padding: 0.25rem 0.5rem !important;
    min-height: 34px !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    font-size: 0.75rem !important;
    padding: 0.125rem 0.5rem !important;
    margin: 0.125rem !important;
    background-color: #0d6efd !important;
    border: 1px solid #0d6efd !important;
    color: white !important;
    border-radius: 0.25rem !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    color: white !important;
    margin-right: 0.25rem !important;
    font-size: 0.875rem !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff !important;
    opacity: 0.8 !important;
}

/* Dark theme için */
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection {
    background-color: #212529 !important;
    border-color: #495057 !important;
    color: #fff !important;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    color: #fff !important;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

/* Dropdown styling */
.select2-container--bootstrap-5 .select2-dropdown {
    border-color: #ced4da !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown {
    background-color: #212529 !important;
    border-color: #495057 !important;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-results__option {
    color: #fff !important;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #0d6efd !important;
}

/* Focus state */
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5.select2-container--focus .select2-selection,
[data-bs-theme="dark"] .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Global Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.8rem;
}

/* Sidebar Styles */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .sidebar {
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 10px;
    margin: 4px 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
}

/* Main Content */
.main-content {
    padding: 5px 30px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

[data-bs-theme="dark"] .card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    font-weight: 500;
}

/* Navbar Brand */
.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
}

/* Theme Toggle Button */
.theme-toggle {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Sidebar */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
    }

    .sidebar.show,
    .sidebar.active {
        left: 0;
    }

    .main-content {
        padding: 15px;
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

@media (min-width: 768px) {
    .sidebar-overlay {
        display: none !important;
    }
}

/* jQuery UI Sortable */
.ui-state-highlight {
    height: 50px;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.ui-sortable-helper {
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}