/* Genel Stiller */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #4776E6;
    --primary-light: #e8f0ff;
    --secondary-color: #FF5E62;
    --text-color: #444;
    --bg-color: #f8f9fa;
    --border-radius: 12px;
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #4776E6, #8E54E9);
    --gradient-secondary: linear-gradient(135deg, #FF5E62, #FF9966);
    --box-shadow-hover: 0 10px 30px rgba(71, 118, 230, 0.2);
    --box-shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --circle-dimension: 50px;
}

body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    height: 100vh;
}

/* YÜKLEME EKRANI STILLERİ */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f7f9fc;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.loading-hidden {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden !important;
    transition-delay: 0s !important;
}

/* İçeriği başlangıçta gizle, JS ile göstereceğiz */
#content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.content-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transition-delay: 0.5s !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    position: relative;
    min-height: 100vh;
}

/* Content styling */
#content {
    width: 100%;
    transition: var(--transition);
    margin-left: 0;
    background-color: #f7f9fc;
    display: flex;
    flex-direction: column;
}

/* Kullanıcı bilgisinin yeni konumu (sağ üst) */
/* User Profile Component stilleri artık user_component/user-profile.css dosyasında */

/* Card styling */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    transition: var(--transition);
    margin-bottom: 25px;
    background: white;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.card-header {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* Button styles */
.btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8E54E9, #4776E6);
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 10px 20px rgba(71, 118, 230, 0.3);
    border-color: #8E54E9;
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
    position: relative;
    z-index: 1;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4776E6, #8E54E9);
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-outline-primary:hover {
    color: white;
    border-color: #8E54E9;
    background-color: transparent;
    box-shadow: 0 10px 20px rgba(71, 118, 230, 0.2);
    transform: translateY(-2px);
}

.btn-outline-primary:hover::before {
    opacity: 1;
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.5s both;
}

/* Footer styling */
.footer {
    background-color: #fff;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.7;
}

.footer h5 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.footer ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Modal styling */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.modal-header {
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10.5%) 0 0/40px 40px;
    transform: rotate(30deg);
    z-index: 0;
}

.modal-title {
    position: relative;
    z-index: 1;
}

.modal-body {
    padding: 25px;
}

/* Media queries */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .card {
        margin-bottom: 15px;
    }

    .card-body {
        padding: 20px 15px;
    }

    .footer {
        text-align: center;
    }

    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer ul li a:hover {
        transform: translateX(0);
    }
}

@media (max-width: 576px) {
    .row > [class*="col"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    .modal-body {
        padding: 15px;
    }
}

/* Fix for devices that have notches */
@supports (padding-top: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Better focus styles for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(71, 118, 230, 0.25);
}

/* Add styles for user dropdown in navbar */
/* User Profile Component stilleri artık user_component/user-profile.css dosyasında */

/* Profile section styling */
.user-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: #f0f4fe;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(71, 118, 230, 0.2);
    transition: transform 0.3s ease;
    border: 4px solid white;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-avatar i {
    color: var(--primary-color);
    font-size: 5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#userFullName {
    margin-bottom: 0.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

#userEmail {
    font-size: 0.95rem;
}

/* Card styling for profile section */
.profile-card {
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: none;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(71, 118, 230, 0.15);
}

/* Form styling for profile section */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-control:disabled {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

/* Hide "Akıllı Kütüphanem" text in mobile view */
@media (max-width: 576px) {
    .navbar-profile-pic {
        width: 36px;
        height: 36px;
    }

    /* Improved mobile profile layout */
    .user-avatar {
        width: 100px;
        height: 100px;
    }

    .user-avatar i {
        font-size: 4rem;
    }

    /* Better spacing for mobile profile view */
    .card-body {
        padding: 1.25rem;
    }

    #userFullName {
        font-size: 1.3rem;
    }
}

/* Better profile action buttons */
#editProfileBtn, #saveProfileBtn, #cancelEditBtn {
    transition: all 0.3s ease;
}

#editProfileBtn:hover, #saveProfileBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(71, 118, 230, 0.2);
}

/* Animation for profile card */
.profile-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Profile picture upload button */
.profile-pic-upload {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.profile-pic-upload:hover {
    transform: scale(1.1);
    background: #3264d0;
    color: white;
}

.profile-pic-upload i {
    font-size: 18px;
    color: white;
}

/* New: Profile picture delete button */
.profile-pic-delete {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: var(--secondary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
}

.profile-pic-delete:hover {
    transform: scale(1.1);
    background: #d63030;
    color: white;
}

.profile-pic-delete i {
    font-size: 18px;
    color: white;
}

/* User type badge styling */
#userStatusBadge {
    transition: all 0.3s ease;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

#userStatusBadge.Öğrenci {
    background-color: #4776E6;
}

/* User type select styling */
.form-select {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    border-color: #e9ecef;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-select:disabled {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(71, 118, 230, 0.25);
}

/* Navbar profile picture styles */
/* User Profile Component stilleri artık user_component/user-profile.css dosyasında */

/* Sol Üst Geri Butonu Stili */
.back-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.3);
}

/* Hesap Ayarları bölümündeki ikonların dairesel görünümünü ve ortalanmasını sağlar */
.card-body .d-flex.align-items-center.mb-3 > .rounded-circle.bg-primary {
    width: var(--circle-dimension);
    height: var(--circle-dimension);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 !important;
    border-radius: 50%;
}

.card-body .d-flex.align-items-center.mb-3 > .rounded-circle.bg-primary i {
    font-size: 1.5rem;
    color: white;
}