/* LGS Koçluk Sistemi - Ana CSS Dosyası */

:root {
    --primary: #4e73df;
    --secondary: #6c757d;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
    --topbar-height: 60px;
    --border-radius: 0.35rem;
    --transition-speed: 0.3s;
    --box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

/* General Styles */
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.875rem;
    background-color: #f8f9fc;
    color: #5a5c69;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: #2653d4;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    transition: all var(--transition-speed) ease;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
    color: white;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: all var(--transition-speed) ease;
    overflow-y: auto;
    box-shadow: var(--box-shadow);
}

.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h4 {
    margin: 0.5rem 0 0;
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity var(--transition-speed);
}

.sidebar-collapsed .sidebar-header h4 {
    opacity: 0;
    display: none;
}

.logo {
    height: 40px;
    transition: all var(--transition-speed) ease;
}

.sidebar-collapsed .logo {
    height: 30px;
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.sidebar-menu a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
}

.sidebar-menu a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: white;
}

.sidebar-menu i {
    min-width: 2rem;
    font-size: 1rem;
    text-align: center;
    margin-right: 0.75rem;
    transition: margin var(--transition-speed);
}

.sidebar-collapsed .sidebar-menu i {
    margin-right: 0;
    margin-left: 0.1rem;
}

.sidebar-collapsed .sidebar-menu a span {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin var(--transition-speed) ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* Topbar */
.topbar {
    height: var(--topbar-height);
    background-color: white;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-right {
    display: flex;
    align-items: center;
}

.user-dropdown {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 0.5rem;
    border: 2px solid #e3e6f0;
}

/* Notifications */
.notification-dropdown {
    width: 320px;
    max-height: 400px;
    padding: 0;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-header {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e3e6f0;
    display: flex;
    align-items: center;
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.notification-content {
    flex-grow: 1;
}

.notification-content .title {
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.notification-content .message {
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
    color: var(--secondary);
}

.notification-content .time {
    color: #b7b9cc;
    font-size: 0.7rem;
}

.notification-item.success .notification-icon {
    background-color: #e6f8f3;
    color: var(--success);
}

.notification-item.warning .notification-icon {
    background-color: #fef8e8;
    color: var(--warning);
}

.notification-item.danger .notification-icon {
    background-color: #fdecea;
    color: var(--danger);
}

.notification-item.info .notification-icon {
    background-color: #e8f5f9;
    color: var(--info);
}

/* Page Content */
.page-content {
    padding: 1.5rem;
    flex-grow: 1;
}

/* Page Header */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--primary);
}

.card-body {
    padding: 1.25rem;
}

/* Stats Card */
.stats-card {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border-left: 0.25rem solid;
    transition: transform 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card-primary {
    border-left-color: var(--primary);
}

.stats-card-success {
    border-left-color: var(--success);
}

.stats-card-info {
    border-left-color: var(--info);
}

.stats-card-warning {
    border-left-color: var(--warning);
}

.stats-card-icon {
    flex-shrink: 0;
    font-size: 2rem;
    margin-right: 1rem;
}

.stats-card-content {
    flex-grow: 1;
}

.stats-card-title {
    font-size: 0.8rem;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stats-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Data Tables */
.dataTables_wrapper {
    padding: 1rem 0;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #2653d4;
    border-color: #2653d4;
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
}

.btn-success:hover {
    background-color: #17a673;
    border-color: #17a673;
}

.btn-info {
    background-color: var(--info);
    border-color: var(--info);
}

.btn-info:hover {
    background-color: #2ea7bb;
    border-color: #2ea7bb;
}

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
}

.btn-warning:hover {
    background-color: #f4b619;
    border-color: #f4b619;
}

.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
}

.btn-danger:hover {
    background-color: #d64331;
    border-color: #d64331;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 0.9rem;
}

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #d1d3e2;
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
}

.form-control:focus {
    border-color: #a3b9ff;
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.1);
}

.form-select {
    border-radius: var(--border-radius);
    border: 1px solid #d1d3e2;
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Progress Bar */
.progress {
    height: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.progress-sm {
    height: 0.5rem;
}

/* Badges */
.badge {
    padding: 0.35rem 0.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
}

/* Calendar */
.calendar-container {
    height: 600px;
}

/* Guest Pages */
.guest-body {
    background-color: #f8f9fc;
}

.main-container {
    min-height: calc(100vh - 200px);
}

.auth-card {
    max-width: 450px;
    margin: 3rem auto;
}

.auth-header {
    text-align: center;
    padding: 2rem 0 1rem;
}

.auth-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.auth-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--secondary);
    margin-bottom: 2rem;
}

.social-icons {
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: #2653d4;
    color: white;
    transform: translateY(-3px);
}

/* Achievement Badges */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.achievement-badge {
    width: 120px;
    height: 150px;
    border-radius: var(--border-radius);
    border: 1px solid #e3e6f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    background-color: white;
}

.achievement-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.achievement-badge img {
    width: 60px;
    height: 60px;
    margin-bottom: 0.75rem;
}

.achievement-badge .badge-name {
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.achievement-badge .badge-points {
    font-size: 0.7rem;
    color: var(--secondary);
}

.achievement-badge.locked {
    filter: grayscale(1);
    opacity: 0.6;
}

.achievement-badge.locked:hover {
    opacity: 0.8;
}

/* Home Page */
.hero-section {
    padding: 5rem 0;
    background-color: #f1f5fe;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2b3144;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.features-section {
    padding: 5rem 0;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section {
    padding: 5rem 0;
    background-color: var(--primary);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer {
    background-color: #f8f9fc;
    padding: 3rem 0;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer ul {
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: #6c757d;
    transition: color 0.15s ease-in-out;
}

.footer ul li a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .sidebar {
        width: var(--sidebar-width);
        transform: translateX(-100%);
    }
    
    .sidebar-collapsed .sidebar {
        transform: translateX(0);
        width: var(--sidebar-width);
    }
    
    .sidebar-collapsed .sidebar-header h4 {
        opacity: 1;
        display: block;
    }
    
    .sidebar-collapsed .sidebar-menu i {
        margin-right: 0.75rem;
    }
    
    .sidebar-collapsed .sidebar-menu a span {
        opacity: 1;
        width: auto;
        height: auto;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .auth-card {
        margin: 2rem 1rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .features-section, .cta-section {
        padding: 3rem 0;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Custom Select2 Styling */
.select2-container--default .select2-selection--single {
    height: calc(1.5em + 0.9rem + 2px);
    padding: 0.45rem 0.75rem;
    border: 1px solid #d1d3e2;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + 0.9rem + 2px);
}

/* Print Styles */
@media print {
    .sidebar, .topbar, .page-header, .btn-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .page-content {
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}