/* Özel CSS stilleri */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.min-vh-100 {
    min-height: 100vh;
}

/* Card animasyonları */
.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* İstatistik kartları */
.stat-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.stat-card-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.stat-card-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 10px 30px rgba(17, 153, 142, 0.3);
}

.stat-card-orange {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.stat-icon i {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.9);
}

/* Responsive tablo */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .row.g-3 > * {
        margin-bottom: 1rem;
    }
}

/* Navbar ayarları */
.navbar-brand {
    font-weight: 600;
}

/* Form kontrolü */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Badge stilleri */
.badge {
    font-size: 0.875em;
}

/* Loading animasyonu */
.btn:disabled {
    opacity: 0.6;
}

/* Alert stilleri */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* İkonlar */
.bi {
    vertical-align: -0.125em;
}

/* Mobil uyumluluk */
@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Navbar responsive */
.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Breadcrumb stilleri */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

/* Form validasyon stilleri */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #198754;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
}

/* Arama formu stilleri */
.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

/* Hızlı işlemler kartı */
.card.border-primary {
    border-width: 2px;
}

/* Buton hover efektleri */
.btn:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Responsive tablo iyileştirmeleri */
@media (max-width: 992px) {
    .table-responsive {
        border: none;
    }
    
    .table th:first-child,
    .table td:first-child {
        position: sticky;
        left: 0;
        background-color: inherit;
        z-index: 10;
    }
}

/* Preview alert */
.alert.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Meta key seçici */
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Proje Detay Sayfası Stilleri */
.detail-item {
    margin-bottom: 1.5rem;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.detail-value {
    font-size: 1rem;
    color: #212529;
    line-height: 1.5;
}

.description-box {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 1rem;
    border-radius: 0 0.375rem 0.375rem 0;
    font-style: italic;
}

/* Badge Soft Renkleri */
.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-warning-soft {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-info-soft {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

/* Özet Kartı */
.summary-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.summary-content {
    flex: 1;
}

.summary-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.2rem;
}

.summary-value {
    font-weight: 600;
    color: #212529;
}

/* Tablo İyileştirmeleri */
.table td {
    vertical-align: middle;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Responsive iyileştirmeler */
@media (max-width: 768px) {
    .detail-item {
        margin-bottom: 1rem;
    }
    
    .summary-item {
        padding: 0.5rem 0;
    }
    
    .summary-icon {
        width: 35px;
        height: 35px;
        margin-right: 0.75rem;
    }
    
    .table td, .table th {
        font-size: 0.8rem;
        padding: 0.5rem 0.25rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* Görev Kartları */
.task-item {
    background-color: #fff;
    transition: all 0.3s ease;
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.task-list .task-item:last-child {
    margin-bottom: 0 !important;
}

/* Kategori Renk Noktası */
.category-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Öncelik Badge'leri - Bootstrap sınıfları kullanılıyor */

/* Görev İstatistikleri */
.task-stats .col-3 {
    border-right: 1px solid #e9ecef;
}

.task-stats .col-3:last-child {
    border-right: none;
}

/* Form İyileştirmeleri */
.form-control-color {
    width: 50px;
    height: 38px;
    padding: 0.375rem 0.5rem;
}

/* Responsive iyileştirmeler */
@media (max-width: 768px) {
    .task-item {
        padding: 1rem !important;
    }
    
    .task-item .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .task-item .d-flex.flex-column {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
    }
    
    .category-color-dot {
        width: 10px;
        height: 10px;
    }
}

/* Dark mode desteği */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #212529;
        color: #fff;
    }
    
    .card {
        background-color: #343a40;
        color: #fff;
    }
    
    .table {
        color: #fff;
    }
    
    .input-group-text {
        background-color: #495057;
        border-color: #6c757d;
        color: #fff;
    }
    
    .detail-label {
        color: #adb5bd;
    }
    
    .detail-value {
        color: #fff;
    }
    
    .description-box {
        background-color: #495057;
        border-left-color: #0d6efd;
        color: #fff;
    }
    
    .summary-label {
        color: #adb5bd;
    }
    
    .summary-value {
        color: #fff;
    }
    
    .task-item {
        background-color: #495057;
        color: #fff;
    }
}