/* Genel Stiller */
:root {
    --primary-color: #2c3e50;
    --primary-light: #34495e;
    --secondary-color: #3498db;
    --secondary-light: #41a7f5;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --border-color: #ddd;
    --text-color: #333;
    --body-bg: #f5f7fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

a:hover {
    color: var(--secondary-light);
}

/* Grid Sistemi */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-8, .col-md-9, .col-md-12 {
    padding: 10px;
}

.col-md-3 {
    width: 25%;
}

.col-md-4 {
    width: 33.333333%;
}

.col-md-5 {
    width: 41.666667%;
}

.col-md-6 {
    width: 50%;
}

.col-md-8 {
    width: 66.666667%;
}

.col-md-9 {
    width: 75%;
}

.col-md-12 {
    width: 100%;
}

/* Header */
.main-header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.toggle-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    margin-left: 15px;
    cursor: pointer;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin: 0 5px;
}

.main-nav ul li a {
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    display: block;
    transition: background-color 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background-color: var(--primary-light);
}

.main-nav ul li a i {
    margin-right: 5px;
}

.header-right {
    display: flex;
    align-items: center;
}

.user-menu {
    position: relative;
}

.user-button {
    background: none;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
}

.user-button i:first-child {
    font-size: 1.2rem;
    margin-right: 5px;
}

.user-button i:last-child {
    font-size: 0.8rem;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 160px;
    z-index: 100;
    display: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1rem;
    color: var(--text-color);
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: var(--light-color);
}

.dropdown-menu a i {
    margin-right: 5px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}

.user-menu:hover .dropdown-menu {
    display: block;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    display: flex;
}

.footer-info span {
    margin-left: 15px;
}

.footer-info i {
    margin-right: 5px;
}

/* Butonlar */
.btn {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    transition: all 0.15s;
}

.btn i {
    margin-right: 5px;
}

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

.btn-primary:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
    color: white;
}

.btn-secondary {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-group {
    display: flex;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

/* Kartlar */
.card {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: var(--light-color);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.card-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.card-body {
    padding: 20px;
}

/* Formlar */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.form-row .form-group {
    padding-right: 10px;
    padding-left: 10px;
    flex-grow: 1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    gap: 10px;
}

.input-group {
    display: flex;
    position: relative;
}

.input-group .form-control {
    position: relative;
    flex: 1 1 auto;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-append {
    display: flex;
}

.input-group-append .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.form-control.ml-2 {
    margin-left: 0.5rem;
}

/* Tablolar */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid var(--border-color);
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--light-color);
}

.table tbody + tbody {
    border-top: 2px solid var(--border-color);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.bg-primary {
    background-color: var(--secondary-color);
    color: white;
}

.bg-success {
    background-color: var(--success-color);
    color: white;
}

.bg-warning {
    background-color: var(--warning-color);
    color: white;
}

.bg-danger {
    background-color: var(--danger-color);
    color: white;
}

.bg-info {
    background-color: #3498db;
    color: white;
}

/* Uyarılar */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Sayfalama */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.page-item:first-child .page-link {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: var(--border-color);
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--secondary-color);
    background-color: #fff;
    border: 1px solid var(--border-color);
}

.page-link:hover {
    color: var(--secondary-light);
    text-decoration: none;
    background-color: var(--light-color);
    border-color: var(--border-color);
}

.record-info {
    margin-top: 1rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Dashboard */
.dashboard h1 {
    margin-bottom: 1.5rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 20px;
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
}

.stat-details h3 {
    margin: 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: bold;
    margin: 5px 0 0;
}

.dashboard-row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.dashboard-column {
    padding: 10px;
    flex: 1 0 100%;
}

@media (min-width: 768px) {
    .dashboard-column {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.activity-list {
    max-height: 450px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.activity-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.activity-details {
    font-size: 0.8125rem;
    color: #6c757d;
}

.activity-time {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-top: 2px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-primary {
    color: var(--secondary-color);
}

/* Sayfa başlık bölümü */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h1 {
    margin: 0;
}

/* Filtreler */
.filters {
    margin-bottom: 20px;
}

/* Toast mesajları */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    min-width: 250px;
    background-color: white;
    color: var(--text-color);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: toast-in 0.3s, toast-out 0.3s 2.7s;
    animation-fill-mode: forwards;
    opacity: 0;
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
}

@keyframes toast-in {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Yardım butonu */
.help-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
}

.help-button button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.help-button button:hover {
    background-color: var(--secondary-light);
}

/* Giriş Sayfası */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--primary-color);
    background-image: linear-gradient(to bottom right, var(--primary-color), var(--primary-light));
}

.login-container {
    background-color: white;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-header h1 {
    margin: 0;
    font-size: 24px;
}

.login-header p {
    margin: 10px 0 0;
    opacity: 0.9;
}

.login-form {
    padding: 30px;
}

.login-form h2 {
    margin: 0 0 20px;
    text-align: center;
    color: var(--primary-color);
}

.login-footer {
    padding: 15px 30px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: #6c757d;
    font-size: 0.875rem;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .toggle-menu {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 60px;
        left: -250px;
        width: 250px;
        height: calc(100vh - 60px);
        background-color: var(--primary-color);
        transition: left 0.3s;
        z-index: 99;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .main-nav ul li {
        margin: 0;
    }
    
    .main-nav ul li a {
        border-radius: 0;
        padding: 12px 20px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        margin-top: 10px;
        flex-direction: column;
    }
    
    .footer-info span {
        margin: 5px 0;
    }
}