/* General Styles */
/* @import url'ler HTML'de linklendiği için kaldırıldı */

:root {
    --primary-color: #4776E6;
    --primary-light: #e8f0ff;
    --primary-dark: #3264d0;
    --secondary-color: #FF5E62;
    --secondary-light: #fff5f5;
    --text-color: #333;
    --text-light: #6c757d;
    --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);
    --round-button-radius: 50%;
    --circle-dimension: 50px;
}

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

/* 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 */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    position: relative;
    min-height: 100vh;
}

/* Content - Tam genişlik ve flexbox container */
#content {
    width: 100%;
    transition: var(--transition);
    margin-left: 0;
    background-color: #f7f9fc;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(71, 118, 230, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(142, 84, 233, 0.07) 0%, transparent 25%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 247, 255, 0.9) 100%);
    background-attachment: fixed;
    color: #333 !important;
}


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

.dropdown-toggle::after {
    margin-left: 0.25rem;
    color: var(--primary-color);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(71, 118, 230, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Timer Display */
.timer-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
}

.timer-unit span {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    border-radius: 10px;
    padding: 10px;
    min-width: 120px;
    display: inline-block;
    background-color: var(--primary-light);
    box-shadow: 0 5px 15px rgba(71, 118, 230, 0.2);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.timer-unit small {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 500;
}

.timer-separator {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    align-self: flex-start;
    margin-top: 15px;
}

.timer-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    font-weight: 400;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(71, 118, 230, 0.3);
}

.btn-danger {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #ff4b4f;
    border-color: #ff4b4f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 94, 98, 0.3);
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.2);
}

/* Cards */
.card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-body {
    padding: 1.75rem;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid #e9ecef;
}

.table td {
    vertical-align: middle;
}

/* Study Time Log */
.study-time-log {
    margin-top: 2rem;
}

.study-time-log h3 {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

/* Category Selector */
.category-selector h4 {
    color: var(--text-color);
    font-weight: 400;
    font-size: 1.15rem;
}

.form-select {
    border-radius: 10px;
    padding: 10px 15px;
    border-color: #e9ecef;
    color: var(--text-color);
    font-weight: 500;
    box-shadow: none;
    transition: var(--transition);
}

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

/* Goal Setter */
.goal-setter {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    transition: all 0.3s ease;
}

.goal-header {
    padding: 10px 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.goal-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.goal-content {
    background-color: var(--primary-light);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(71, 118, 230, 0.1);
    transition: all 0.3s ease;
    animation: fadeInDown 0.4s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.time-input {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: nowrap;
}

.time-input .form-control {
    border-left: 0;
    border-right: 0;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    text-align: center;
}

.time-input .btn {
    width: 40px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
}

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

.quick-presets {
    margin-top: 15px;
}

.quick-presets .row {
    gap: 0;
    margin: 0 -5px;
}

.quick-presets .col-3 {
    padding: 0 5px;
}

.quick-presets .btn {
    font-size: 0.85rem;
    padding: 0.35rem 0;
    transition: var(--transition);
    width: 100%;
}

.quick-presets .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(71, 118, 230, 0.2);
}

.goal-time-display {
    font-size: 0.85rem;
    font-weight: 600;
}

.goal-time-display .elapsed-time {
    color: var(--primary-color);
}

.goal-progress-wrapper {
    margin-top: 15px;
}

.goal-progress-wrapper .progress {
    height: 14px;
    border-radius: 20px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.goal-progress-wrapper .progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #8e54e9);
    transition: width 0.5s ease;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: center;
    background-color: var(--primary-light);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(71, 118, 230, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(71, 118, 230, 0.2);
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-info {
    flex: 1;
}

.stat-info span {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-info small {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Charts */
.chart-container {
    position: relative;
    height: 200px;
    margin-bottom: 20px;
}

.nav-tabs {
    border-bottom: 1px solid #e9ecef;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-light);
    font-weight: 600;
    padding: 10px 20px;
    transition: var(--transition);
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

/* Settings Modal */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
}

@media (max-width: 991.98px) {
    .timer-unit span {
        font-size: 3.5rem;
        min-width: 90px;
    }

    .timer-separator {
        font-size: 2.8rem;
        margin-top: 12px;
    }
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

.show-goal {
    animation: fadeInDown 0.5s ease;
}

/* Log Details Modal Styles */
.detail-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

#detailHourlyChart {
    max-height: 200px;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    #content {
        margin-left: 0;
    }

    .timer-unit span {
        font-size: 2.5rem;
        min-width: 80px;
    }
    .timer-separator {
        font-size: 2.2rem;
    }
    .timer-icon {
        font-size: 3rem;
    }
    .card {
        padding: 15px;
    }

    /* User Profile Component responsive stilleri artık component CSS'inde */
    
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card {
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .card-body {
        padding: 12px;
    }

    .nav-tabs .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .nav-tabs {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .timer-unit span {
        font-size: 1.8rem;
        min-width: 50px;
        padding: 5px;
    }
    .timer-separator {
        font-size: 1.6rem;
        margin-top: 8px;
    }
    .timer-icon {
        font-size: 2.5rem;
    }
    
    .user-info-top-right {
       padding: 4px 6px;
    }
    .user-name {
       max-width: 70px;
       font-size: 0.75rem;
    }
    .navbar-profile-pic {
       width: 25px;
       height: 25px;
       margin-right: 5px;
    }
    .navbar-profile-pic i {
       font-size: 1rem;
    }

    .timer-controls .btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .time-input .btn {
        min-height: 38px;
        min-width: 35px;
    }
    
    .time-input .form-control {
        font-size: 0.9rem;
        height: 38px;
        min-width: 35px;
    }
    
    .goal-content {
        padding: 12px;
    }
    
    label.form-label {
        font-size: 0.85rem;
    }
    
    .quick-presets .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0;
        width: 100%;
        height: 32px;
    }
    
    .nav-tabs .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .nav-tabs {
        margin-bottom: 15px;
    }
    
    h3, h4 {
        margin-top: 15px;
        margin-bottom: 12px;
    }
    
    .chart-container {
        height: 180px !important;
        margin-bottom: 15px;
    }
    
    .stat-summary {
        margin-top: 15px;
    }
    
    .stat-summary .row {
        flex-direction: column;
        margin: 0;
    }
    
    .stat-summary .col-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 0;
        margin-bottom: 10px;
    }
    
    .stat-card {
        margin-bottom: 10px;
        padding: 12px;
    }
    
    .stat-icon {
        width: 42px;
        height: 42px;
        margin-right: 12px;
    }
    
    .stat-info span {
        font-size: 1.1rem;
    }
    
    .stat-info small {
        font-size: 0.75rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table th, .table td {
        padding: 0.4rem;
    }
    
    .study-time-log .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .table .btn-sm {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .table td {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .dropdown-menu {
        width: auto;
        min-width: 10rem;
        font-size: 0.9rem;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
    }
    
    .goal-time-display {
        font-size: 0.7rem;
    }
    
    .goal-progress-wrapper .progress {
        height: 10px;
        margin-top: 5px;
    }
}

@media (max-width: 400px) {
    .timer-unit span {
        font-size: 1.5rem;
        min-width: 40px;
        padding: 4px;
    }
    
    .timer-separator {
        font-size: 1.3rem;
        margin-top: 4px;
    }
    
    .timer-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .user-info-top-right {
        padding: 3px 5px;
    }
    .user-name {
        max-width: 60px;
        font-size: 0.85rem;
    }
    .navbar-profile-pic {
        width: 28px;
        height: 28px;
        margin-right: 2px;
    }
    
    .dropdown-item {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .btn {
        min-height: 44px;
    }
    
    .timer-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .timer-controls .btn {
        width: 100%;
        padding: 0.35rem 0;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    .category-selector h4 {
        font-size: 1rem;
    }
    
    .form-select {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .time-input {
        flex-wrap: nowrap;
    }
    
    .time-input .btn {
        min-width: 30px;
        padding: 0;
    }
    
    .time-input .form-control {
        font-size: 0.85rem;
        padding: 0.35rem 0;
        min-width: 30px;
    }
    
    .quick-presets .row {
        gap: 6px 0;
    }
    
    .quick-presets .btn {
        font-size: 0.7rem;
        padding: 0.25rem 0;
        height: 28px;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .stat-info span {
        font-size: 1rem;
    }
    
    .stat-info small {
        font-size: 0.7rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .chart-container {
        height: 140px !important;
        margin-bottom: 10px;
    }
    
    .goal-time-display {
        font-size: 0.65rem;
    }
    
    .goal-progress-wrapper .progress {
        height: 8px;
    }
    
    .table th, .table td {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.timer-display span {
    font-weight: 700;
}

.timer-display small {
    font-weight: 500;
}

.category-selector h4,
.goal-setter h4 {
    font-weight: 600;
}

.form-label {
    font-weight: 500;
}

.card-title, 
.section-title {
    font-weight: 600;
}

.btn {
    font-weight: 500;
}

.dropdown-item {
    font-weight: 500;
} 

/* 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);
}