:root {
    --primary-color: #2563eb;
    --secondary-color: #475569;
    --success-color: #16a34a;
    --danger-color: #dc2626;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    background-color: #f1f5f9;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Navbar ve Menü Stilleri */
.navbar {
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav {
    margin: 0 -0.5rem;
}

.menu-item {
    padding: 0.5rem 1.25rem !important;
    margin: 0 0.25rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-1px);
}

.menu-item.active {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.nav-item {
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-size: 1.2rem;
    padding: 0.5rem 0;
}

.navbar-brand:hover {
    background: none;
}

.nav-link {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select:focus, .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

/* Button group styles */
.btn-group .btn-link {
    padding: 0.25rem 0.5rem;
}

.btn-group .btn-link:hover {
    opacity: 0.8;
}

/* Tablo Stilleri */
.table {
    font-size: 0.95rem;
    border-radius: 8px;
    overflow: hidden;
    border-collapse: collapse;
    margin-bottom: 0;
}

.table thead th {
    font-weight: 600;
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table td, .table th {
    padding: 1rem;
    vertical-align: middle;
    border-color: #e2e8f0;
}

.table-bordered > :not(caption) > * > * {
    border-width: 0 1px;
}

.table-hover tbody tr:hover {
    background-color: #f1f5f9;
}

.table th {
    background-color: var(--light-bg);
    font-weight: 600;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

th a:hover {
    opacity: 0.8;
}

th a .fas {
    font-size: 0.8em;
    vertical-align: middle;
}

.stats-card {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 1.5rem;
}

.stats-card .value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.stats-card .label {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
}

.modal-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.modal-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* DataTables Özelleştirmeleri */
.dataTables_wrapper .dataTables_length select {
    min-width: 80px;
}

.dataTables_wrapper .dataTables_filter input {
    min-width: 250px;
}

.content-wrapper {
    flex: 1 0 auto;
    padding-bottom: 4rem; /* Increased from 2rem to 4rem */
    margin-bottom: 2rem; /* Added additional margin */
}

/* Footer Styles */
.footer {
    flex-shrink: 0; /* Prevents footer from shrinking */
    position: sticky;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer h5 {
    font-weight: 600;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a:hover {
    color: #fff !important;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: #fff !important;
    transition: color 0.3s ease;
}

.footer hr {
    opacity: 0.1;
}

/* Modern Card Styles */
.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0,0,0,0.1);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.dashboard-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.dashboard-card .label {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.dashboard-card .value {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.dashboard-card .value small {
    font-size: 1rem;
    opacity: 0.8;
}

.dashboard-card .trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.dashboard-card .description {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}

.stats-group {
    margin-bottom: 3rem;
}

.stats-group-header {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-group-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

/* Mobil Menü Stilleri */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .navbar-nav {
        gap: 5px !important;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 4px;
        width: 100%;
        text-align: left;
    }

    .menu-item {
        width: 100%;
        margin: 0;
        border-radius: 4px;
    }

    .nav-link:hover {
        background-color: rgba(255,255,255,0.1);
    }

    .navbar-brand {
        margin-right: auto;
    }

    .navbar-toggler {
        margin-left: 1rem;
    }
}