/* İzmir Avukatlar Vakfı - Ana Stil Dosyası */

:root {
    --primary-color: #0b6ab2; /* rgb(11, 106, 178) */
    --primary-hover: #095a9e;
    --primary-light: rgba(11, 106, 178, 0.1);
    --primary-shadow: rgba(11, 106, 178, 0.25);
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

/* Navbar Bootstrap Override - Yeni Primary Renk Kullanımı */
.navbar.bg-primary {
    background: var(--primary-color) !important;
}

.navbar.bg-primary .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar.bg-primary .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar.bg-primary .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(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

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

.card-header {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    border-bottom: none;
}

/* Training Cards - Daha Derli Toplu Tasarım */
.training-card {
    border-left: 4px solid var(--primary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.training-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.training-card .card-title {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.training-card .card-text {
    color: var(--dark-color);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.4;
    flex-grow: 1;
}

.training-meta {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.training-meta .mb-2 {
    display: flex;
    align-items: center;
    margin-bottom: 10px !important;
}

.training-meta i {
    width: 18px;
    text-align: center;
    margin-right: 8px;
    color: var(--primary-color);
}

.price-badge {
    background: var(--success-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
    margin-right: 10px;
}

/* Eğitim kartı alt kısmı - fiyat ve buton */
.training-card .d-flex.justify-content-between.align-items-center {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Eğitim kartı butonları */
.training-card .btn {
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
}

/* Eğitim kartı hover efekti iyileştirme */
.training-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Eğitim kartı için responsive düzenlemeler */
@media (max-width: 768px) {
    .training-card .card-body {
        padding: 15px;
    }

    .training-card .card-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .training-card .card-text {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .training-meta {
        padding: 12px;
        margin-bottom: 15px;
    }

    .training-meta .mb-2 {
        margin-bottom: 8px !important;
    }

    .price-badge {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .training-card .d-flex.justify-content-between.align-items-center {
        padding-top: 12px;
    }
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Calendar */
.calendar {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.calendar-header {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.calendar-nav {
    background: #f8f9fa;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #dee2e6;
}

.calendar-day {
    background: white;
    padding: 15px 5px;
    text-align: center;
    min-height: 60px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.has-event {
    background: #e3f2fd;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.calendar-day-header {
    background: #f8f9fa;
    font-weight: bold;
    color: var(--secondary-color);
    padding: 10px 5px;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--primary-shadow);
}

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

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background: rgba(13, 202, 240, 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    padding: 15px;
}

.table tbody tr {
    transition: background 0.3s ease;
}

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

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

/* Badges */
.badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 15px;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .calendar-day {
        min-height: 40px;
        padding: 10px 2px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Admin Panel Styles */
.admin-sidebar {
    background: var(--dark-color);
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

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

.admin-content {
    padding: 30px;
    background: #f8f9fa;
    min-height: 100vh;
}

.stats-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-card i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stats-card p {
    color: var(--secondary-color);
    margin: 0;
}

/* Admin Panel Border Styles */
.border-left-primary {
    border-left: 0.25rem solid var(--primary-color) !important;
}
.border-left-success {
    border-left: 0.25rem solid var(--success-color) !important;
}
.border-left-info {
    border-left: 0.25rem solid var(--info-color) !important;
}
.border-left-warning {
    border-left: 0.25rem solid var(--warning-color) !important;
}

/* Bootstrap bg-primary Override - Tüm Sayfalarda Yeni Renk Kullanımı */
.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Badge Override for New Primary Color */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Bootstrap List Group Active Override - Daha Güçlü Kural */
.list-group-item.list-group-item-action.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.list-group-item.list-group-item-action.active:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #ffffff !important;
}

/* Bootstrap Text Primary Override - Yeni Renk Kullanımı */
.text-primary {
    color: var(--primary-color) !important;
}

.text-primary:hover {
    color: var(--primary-hover) !important;
}

/* Breadcrumb Item Links Override - Yeni Primary Renk ve Styling */
.breadcrumb-item a {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

.breadcrumb-item a:hover {
    color: var(--primary-hover) !important;
    text-decoration: underline !important;
}

/* Genel Link Stillendirmesi - Kullanıcı Sayfalarında Buton Olmayan Linkler */
a:not(.btn):not(.btn-outline-primary):not(.btn-outline-success):not(.btn-outline-info):not(.btn-outline-warning):not(.btn-outline-danger):not(.btn-outline-secondary):not(.btn-primary):not(.btn-success):not(.btn-info):not(.btn-warning):not(.btn-danger):not(.btn-secondary):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.text-light):not(.list-group-item) {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: color 0.3s ease;
}

a:not(.btn):not(.btn-outline-primary):not(.btn-outline-success):not(.btn-outline-info):not(.btn-outline-warning):not(.btn-outline-danger):not(.btn-outline-secondary):not(.btn-primary):not(.btn-success):not(.btn-info):not(.btn-warning):not(.btn-danger):not(.btn-secondary):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.text-light):not(.list-group-item):hover {
    color: var(--primary-hover) !important;
    text-decoration: underline !important;
}

/* Footer Linkleri - Beyaz Renk ve Özel Stillendirme */
footer a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: normal !important;
}

footer a:hover {
    color: #f8f9fa !important;
    text-decoration: underline !important;
}

/* Navbar Site Name Font Size */
.site-name-small {
    font-size: 0.42em;
}
