/* Özel CSS stilleri */

/* Global oval köşe azaltma - TÜM ELEMENTLER */
* {
    border-radius: 1px !important;
}

/* Bootstrap rounded sınıflarını override et */
.rounded, .rounded-0, .rounded-1, .rounded-2, .rounded-3, 
.rounded-circle, .rounded-pill, .rounded-top, .rounded-bottom,
.rounded-start, .rounded-end {
    border-radius: 1px !important;
}

/* Özel durumlar için hiç oval yok */
.rounded-0, .navbar-brand, .navbar-nav .nav-link {
    border-radius: 0px !important;
}

/* Genel stiller */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
}

/* Kart stilleri */
.card {
    border: none;
    border-radius: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Buton stilleri */
.btn {
    border-radius: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2c5aa0, #1e3a5f);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a5f, #2c5aa0);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #bd2130);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

/* Form stilleri */
.form-control, .form-select {
    border-radius: 1px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* Tablo stilleri */
.table {
    border-radius: 1px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #2c5aa0, #1e3a5f);
    color: white;
    border: none;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(44, 90, 160, 0.05);
}

/* İstatistik kartları */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: none;
}

.stats-card.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stats-card.danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.stats-card.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Grup kartları */
.group-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.group-card:hover {
    transform: none;
}

/* Öğrenci öğeleri */
.student-item {
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
}

.student-item.late {
    border-left-color: #dc3545;
    background-color: #fff5f5;
}

.student-item:hover {
    background-color: inherit;
}

/* Navbar stilleri */
.navbar {
    background: linear-gradient(135deg, #2c5aa0, #1e3a5f);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Sidebar stilleri */
.sidebar {
    background: white;
    border-radius: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar .nav-link {
    color: #6c757d;
    border-radius: 1px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: linear-gradient(135deg, #2c5aa0, #1e3a5f);
    color: white;
}

/* Alert stilleri */
.alert {
    border-radius: 1px;
    border: none;
}

/* Badge stilleri */
.badge {
    border-radius: 1px;
    font-weight: 500;
}

/* Modal stilleri */
.modal-content {
    border-radius: 1px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 1px 1px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 1px 1px;
}

/* Responsive stiller */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
    
    .sidebar {
        margin-bottom: 15px;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Özel scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 1px;
}

::-webkit-scrollbar-thumb {
    background: #2c5aa0;
    border-radius: 1px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3a5f;
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c5aa0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip stilleri */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    background-color: #2c5aa0;
    border-radius: 1px;
}

/* Popover stilleri */
.popover {
    border-radius: 1px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.popover-header {
    background: linear-gradient(135deg, #2c5aa0, #1e3a5f);
    color: white;
    border-radius: 1px 1px 0 0;
    border: none;
}

/* Dropdown stilleri */
.dropdown-menu {
    border-radius: 1px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dropdown-item {
    border-radius: 1px;
    margin: 2px 8px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: none;
}

/* Pagination stilleri */
.pagination .page-link {
    border-radius: 1px;
    margin: 0 2px;
    border: none;
    color: #2c5aa0;
}

.pagination .page-link:hover {
    background-color: #2c5aa0;
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
}

/* Progress bar stilleri */
.progress {
    border-radius: 1px;
    height: 8px;
}

.progress-bar {
    background: linear-gradient(135deg, #2c5aa0, #1e3a5f);
    border-radius: 1px;
}

/* List group stilleri */
.list-group-item {
    border-radius: 1px;
    margin-bottom: 5px;
    border: none;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: none;
}

/* Breadcrumb stilleri */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #2c5aa0;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Custom checkbox ve radio stilleri */
.form-check-input:checked {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
}

/* Input group stilleri */
.input-group-text {
    border-radius: 1px 0 0 1px;
    border: 2px solid #e9ecef;
    background-color: #f8f9fa;
}

.input-group .form-control {
    border-radius: 0 1px 1px 0;
}

/* Card header stilleri */
.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #e9ecef;
    border-radius: 1px 1px 0 0;
    font-weight: 600;
}

/* Text utilities */
.text-gradient {
    background: linear-gradient(135deg, #2c5aa0, #1e3a5f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Border utilities */
.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #2c5aa0, #1e3a5f) 1;
}

/* Shadow utilities */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.1);
}

.shadow-custom-lg {
    box-shadow: 0 20px 40px rgba(44, 90, 160, 0.15);
}
