/**
 * Özel CSS Stilleri
 */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

.loading-overlay[style*="flex"] {
    display: flex !important;
}

/* Navbar */
.navbar-custom {
    background-color: #343a40;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-custom .navbar-brand {
    color: #fff;
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-custom .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s;
    border-radius: 0.25rem;
    margin: 0 0.25rem;
}

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

.navbar-custom .navbar-nav .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.navbar-custom .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Tablet Optimizasyonu */
.tablet-optimized .btn,
.tablet-optimized button {
    min-height: 48px;
    font-size: 16px;
    padding: 0.75rem 1.5rem;
}

.tablet-optimized .form-control,
.tablet-optimized .form-select,
.tablet-optimized input,
.tablet-optimized select,
.tablet-optimized textarea {
    min-height: 48px;
    font-size: 16px;
    padding: 0.75rem 1rem;
}

.tablet-optimized .form-label {
    font-size: 16px;
    margin-bottom: 0.5rem;
}

/* Kategori Kartları */
.category-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #dee2e6;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.category-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.category-card.filled {
    border-color: #0d6efd;
    background-color: #f0f7ff;
}

.category-card-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.category-card.filled .category-card-icon {
    color: #0d6efd;
}

.category-card-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #212529;
    margin: 0;
}

.category-check-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
    color: #0d6efd;
}

/* Sidebar (eski - geriye uyumluluk için) */
.sidebar {
    min-height: 100vh;
    background-color: #343a40;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 1rem;
}

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

/* Table */
.table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

/* Form */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Card */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

/* Badge */
.badge {
    font-size: 0.875rem;
    padding: 0.35em 0.65em;
}

/* Button */
.btn {
    font-weight: 500;
}

/* Image Preview */
.image-preview {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin: 0.5rem;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.25rem;
}

/* Ekspertiz Ana Kartı */
.expertise-main-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.expertise-main-card .card {
    min-height: 300px;
    aspect-ratio: 1 / 1;
    max-width: 500px;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
}

.expertise-main-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: #0d6efd;
}

.expertise-main-icon {
    font-size: 5rem;
    color: #0d6efd;
    transition: all 0.3s ease;
}

.expertise-main-card:hover .expertise-main-icon {
    transform: scale(1.1);
    color: #0a58ca;
}

.expertise-main-card .card-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
    transition: color 0.3s ease;
}

.expertise-main-card:hover .card-title {
    color: #0d6efd;
}

/* Tablet ve Mobil Optimizasyonu */
@media (max-width: 768px) {
    .expertise-main-card .card {
        min-height: 250px;
        aspect-ratio: 1 / 1;
    }
    
    .expertise-main-icon {
        font-size: 4rem;
    }
    
    .expertise-main-card .card-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .expertise-main-card .card {
        min-height: 200px;
    }
    
    .expertise-main-icon {
        font-size: 3.5rem;
    }
    
    .expertise-main-card .card-title {
        font-size: 1.25rem;
    }
}

/* Health Indicator */
.health-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

.health-indicator.health-online {
    background-color: #28a745;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
}

.health-indicator.health-offline {
    background-color: #dc3545;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.health-status-container {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    margin-right: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .health-status-container {
        font-size: 0.75rem;
        margin-right: 0.5rem;
    }
    
    .health-indicator {
        width: 8px;
        height: 8px;
    }
}

/* Eşleştirme Kartları */
.match-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.match-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.match-card-content {
    display: flex;
    flex-direction: row;
    min-height: 100%;
}

.match-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.875rem;
    position: relative;
}

.match-section-request {
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f9ff 100%);
    border-right: 2px solid #90caf9;
}

.match-section-expertise {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border-left: 2px solid #81c784;
}

.match-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.match-section-request .match-section-header {
    color: #1976d2;
}

.match-section-expertise .match-section-header {
    color: #388e3c;
}

.match-section-header i {
    font-size: 1.25rem;
}

.match-section-header h6 {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

.match-section-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.match-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
}

.match-info-item i {
    font-size: 1rem;
    color: #6c757d;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.match-section-request .match-info-item i {
    color: #1976d2;
}

.match-section-expertise .match-info-item i {
    color: #388e3c;
}

.match-value {
    font-size: 0.875rem;
    color: #212529;
    font-weight: 500;
    word-break: break-word;
    flex: 1;
    line-height: 1.4;
}

.match-value-price {
    color: #28a745;
    font-size: 1rem;
}

.match-section-footer {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.match-btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
}

.match-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.match-btn:active {
    transform: translateY(0);
}

.match-btn i {
    font-size: 1rem;
}

/* Responsive Tasarım - Eşleştirme Kartları */
@media (max-width: 991.98px) {
    .match-card-content {
        flex-direction: column;
    }
    
    .match-section-request {
        border-right: none;
        border-bottom: 2px solid #90caf9;
    }
    
    .match-section-expertise {
        border-left: none;
        border-top: 2px solid #81c784;
    }
    
    .match-section {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .match-card {
        margin-bottom: 1rem;
    }
    
    .match-section {
        padding: 0.875rem;
    }
    
    .match-section-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .match-section-header h6 {
        font-size: 0.875rem;
    }
    
    .match-section-body {
        gap: 0.5rem;
    }
    
    .match-info-item {
        gap: 0.5rem;
        padding: 0.25rem 0;
    }
    
    .match-info-item i {
        font-size: 0.95rem;
        width: 18px;
    }
    
    .match-value {
        font-size: 0.8rem;
    }
    
    .match-value-price {
        font-size: 0.95rem;
    }
    
    .match-section-footer {
        margin-top: 0.75rem;
        padding-top: 0.5rem;
    }
    
    .match-btn {
        min-height: 44px;
        font-size: 0.85rem;
        padding: 0.5rem 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .match-section {
        padding: 0.625rem;
    }
    
    .match-section-header {
        gap: 0.375rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.375rem;
    }
    
    .match-section-header i {
        font-size: 1rem;
    }
    
    .match-section-header h6 {
        font-size: 0.8rem;
    }
    
    .match-section-body {
        gap: 0.375rem;
    }
    
    .match-info-item {
        gap: 0.375rem;
        padding: 0.25rem 0;
    }
    
    .match-info-item i {
        font-size: 0.9rem;
        width: 16px;
    }
    
    .match-value {
        font-size: 0.75rem;
    }
    
    .match-section-footer {
        margin-top: 0.5rem;
        padding-top: 0.375rem;
    }
    
    .match-btn {
        min-height: 42px;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Küçük Cardlar (Settings ve Accounting sayfaları için) */
.sub-menu-card {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.sub-menu-card .card {
    min-height: 180px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.sub-menu-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: #0d6efd;
}

.sub-menu-card-icon {
    font-size: 3.5rem;
    color: #0d6efd;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.sub-menu-card:hover .sub-menu-card-icon {
    transform: scale(1.1);
    color: #0a58ca;
}

.sub-menu-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    transition: color 0.3s ease;
    margin: 0;
    text-align: center;
}

.sub-menu-card:hover .card-title {
    color: #0d6efd;
}

/* Geri Butonu */
.back-button {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #212529;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.back-button:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #0d6efd;
    transform: translateX(-2px);
}

.back-button i {
    font-size: 1.5rem;
}

/* Dropdown menü stilleri */
.navbar-custom .dropdown-menu {
    background-color: #343a40;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-custom .dropdown-item {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 1.25rem;
    transition: all 0.3s;
}

.navbar-custom .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.navbar-custom .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 500;
}

.navbar-custom .dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Responsive - Küçük Cardlar */
@media (max-width: 768px) {
    .sub-menu-card .card {
        min-height: 150px;
        padding: 1.25rem;
    }
    
    .sub-menu-card-icon {
        font-size: 3rem;
        margin-bottom: 0.75rem;
    }
    
    .sub-menu-card .card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .sub-menu-card .card {
        min-height: 130px;
        padding: 1rem;
    }
    
    .sub-menu-card-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .sub-menu-card .card-title {
        font-size: 1rem;
    }
    
    .back-button {
        min-width: 44px;
        min-height: 44px;
    }
    
    .back-button i {
        font-size: 1.25rem;
    }
}

/* Eşleşme Kriterleri Checkbox Stili - Kare Köşeli */
.match-criteria-checkbox .form-check-input {
    border-radius: 0 !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    border: 2px solid #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.match-criteria-checkbox .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.match-criteria-checkbox .form-check-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.match-criteria-checkbox .form-check-label {
    cursor: pointer;
    padding-left: 0.5rem;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 0.25rem;
}

.autocomplete-dropdown .list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
}

.autocomplete-dropdown .list-group-item:last-child {
    border-bottom: none;
}

.autocomplete-dropdown .list-group-item:hover,
.autocomplete-dropdown .list-group-item.active {
    background-color: #0d6efd;
    color: #fff;
    z-index: 1;
}

.autocomplete-dropdown .list-group-item:focus {
    outline: none;
}

