/*========================================*/
/*             GENEL STİL AYARLARI        */
/*========================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

.container {
    max-width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/*========================================*/
/*              BANNER STİLİ              */
/*========================================*/

.banner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.banner h1 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/*========================================*/
/*         ÜST AKSİYON BUTONLARI          */
/*========================================*/

.top-action-buttons {
    display: none; /* Hidden by default, shown only on mobile */
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.top-action-buttons .action-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.top-action-buttons .action-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.top-action-buttons .action-button:active {
    transform: translateY(0);
}

/*========================================*/
/*              SIDEBAR STİLİ             */
/*========================================*/

.content-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 150px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    gap: 15px;
    overflow-y: hidden;
}

.sidebar .action-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 130px;
    min-height: 70px;
}

.sidebar .action-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.sidebar .action-button:active {
    transform: translateY(0);
}

.sidebar .action-button i {
    font-size: 1.2rem;
}

.sidebar .action-button span {
    display: block;
    text-align: center;
}

/*========================================*/
/*           ANA İÇERİK STİLİ             */
/*========================================*/

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    flex: 1;
    overflow-y: hidden;
}

/* Mobil görünümde "Başlat" butonunu süre divine yakınlaştırma */
@media (max-width: 768px) {
    .timer-circle{
        margin-bottom: 15px !important;
    }
}

/*========================================*/
/*           ZAMANLAYICI STİLİ            */
/*========================================*/

.timer-circle {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.timer-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#4f46e5 0deg, #c7d2fe 0deg);
    clip-path: polygon(50% 50%, 50% 0%, 0% 0%, 0% 100%, 100% 100%, 100% 0%, 50% 0%);
    transition: all 0.3s ease;
}

.timer-display {
    background: rgba(255, 255, 255, 0.9);
    width: 270px;
    height: 270px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.timer-display span {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.session-info {
    text-align: center;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    width: 100%;
}

.session-info span {
    display: block;
}

#sessionType {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#sessionCount {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/*========================================*/
/*           KONTROL BUTONLARI            */
/*========================================*/

.control-button {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.control-button:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.control-button:active {
    transform: translateY(0);
}

.control-button i {
    font-size: 1.4rem;
}

/*========================================*/
/*         AKSİYON BUTONLARI YANYANA      */
/*========================================*/

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 8px;
    flex-shrink: 0;
    width: 100%;
}

.action-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 120px;
    justify-content: center;
    flex-shrink: 0;
}

.action-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.action-button:active {
    transform: translateY(0);
}

/*========================================*/
/*         ODAK NOKTALARI PANELİ          */
/*========================================*/

.focus-points-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.focus-points-panel.hidden {
    display: none;
}

.focus-points-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.focus-points-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.focus-points-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.focus-points-list {
    margin-bottom: 20px;
}

.focus-point-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f0fdf4;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #bbf7d0;
    justify-content: space-between;
}

.focus-point-item i {
    color: #10b981;
    font-size: 0.8rem;
}

.focus-point-text {
    flex: 1;
    word-break: break-word;
}

.focus-point-edit-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #10b981;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    outline: none;
    background: #f0fdf4;
}

.focus-point-actions {
    display: flex;
    gap: 5px;
}

.btn-edit, .btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #64748b;
}

.btn-edit:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-save-edit {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.btn-save-edit:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
}

.btn-cancel-edit {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-cancel-edit:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.focus-points-add {
    display: flex;
    gap: 10px;
}

.focus-points-add input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #f8fafc;
}

.focus-points-add input:focus {
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.btn-add {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}

/*========================================*/
/*            AYARLAR PANELİ              */
/*========================================*/

.settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 0.3s ease;
}

.settings-panel.hidden {
    display: none;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.settings-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.settings-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.settings-group {
    margin-bottom: 20px;
}

.settings-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
}

.settings-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #f8fafc;
}

.settings-group input:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.settings-actions {
    padding: 20px;
    background: #f1f5f9;
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: center;
}

.btn-save {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.btn-save:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
}

/*========================================*/
/*         KLAVYE KISAYOLLARI PANELİ     */
/*========================================*/

.shortcuts-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 0.3s ease;
}

.shortcuts-panel.hidden {
    display: none;
}

.shortcuts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.shortcuts-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.shortcuts-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.key {
    background: #e2e8f0;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #334155;
}

.description {
    font-weight: 500;
    color: #334155;
}

/*========================================*/
/*           TOAST BİLDİRİMLERİ           */
/*========================================*/

/* SweetAlert2 will replace these custom toast styles */

/*========================================*/
/*             TAM EKRAN MODU             */
/*========================================*/

.fullscreen-mode .banner {
    display: none;
}

.fullscreen-mode .top-action-buttons {
    display: none;
}

.fullscreen-mode .sidebar {
    display: none;
}

.fullscreen-mode .action-buttons {
    margin-bottom: 20px;
    display: none;
}

.fullscreen-mode .timer-container {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.fullscreen-mode .timer-circle {
    width: 350px;
    height: 350px;
    margin-bottom: 20px;
}

.fullscreen-mode .timer-display {
    width: 320px;
    height: 320px;
}

.fullscreen-mode .timer-display span {
    font-size: 4rem;
}

.fullscreen-mode .session-info {
    margin-bottom: 20px;
}

.fullscreen-mode .control-button {
    margin-bottom: 20px;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.fullscreen-mode .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.fullscreen-mode .main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* Tam ekran çıkış butonu */
.fullscreen-exit-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.fullscreen-exit-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/*========================================*/
/*           RESPONSIVE TASARIM           */
/*========================================*/

/* Tabletler için */
@media (max-width: 768px) {
    .sidebar {
        width: 120px;
    }
    
    .sidebar {
        padding: 15px 10px;
    }
    
    .sidebar .action-button {
        padding: 12px 8px;
        font-size: 0.8rem;
        width: 100px;
        min-height: 60px;
    }
    
    .sidebar .action-button i {
        font-size: 1.1rem;
    }
    
    .timer-circle {
        width: 250px;
        height: 250px;
    }
    
    .timer-display {
        width: 220px;
        height: 220px;
    }
    
    .timer-display span {
        font-size: 3rem;
    }
    
    .banner h1 {
        font-size: 1.5rem;
    }
    
    .top-action-buttons {
        flex-wrap: wrap;
    }
    
    .top-action-buttons .action-button {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .control-button {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    
    .action-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .settings-panel, .focus-points-panel {
        padding: 0;
    }
    
    .settings-header, .focus-points-header {
        padding: 15px;
    }
    
    .settings-content, .focus-points-content {
        padding: 15px;
    }
    
    .settings-actions {
        padding: 15px;
    }
    
    /* Tam ekran modu için mobil ayarlar */
    .fullscreen-mode .timer-circle {
        width: 280px;
        height: 280px;
    }
    
    .fullscreen-mode .timer-display {
        width: 250px;
        height: 250px;
    }
    
    .fullscreen-mode .timer-display span {
        font-size: 3.2rem;
    }
}

/* Mobil cihazlar için */
@media (max-width: 480px) {
    .sidebar {
        display: none;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .timer-circle {
        width: 200px;
        height: 200px;
    }
    
    .timer-display {
        width: 170px;
        height: 170px;
    }
    
    .timer-display span {
        font-size: 2.5rem;
    }
    
    .session-info {
        margin-bottom: 20px;
        padding: 10px 15px;
    }
    
    #sessionType {
        font-size: 1.5rem;
    }
    
    #sessionCount {
        font-size: 1rem;
    }
    
    .top-action-buttons {
        display: flex;
        gap: 10px;
        padding: 10px;
    }
    
    .top-action-buttons .action-button span {
        display: none;
    }
    
    .top-action-buttons .action-button i {
        margin-right: 0;
    }
    
    .control-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .action-buttons {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .action-button {
        padding: 8px 15px;
        font-size: 0.8rem;
        min-width: 90px;
    }
    
    /* Hide skip button on mobile */
    #skipButton {
        display: none;
    } 
    
    .action-button i {
        margin-right: 0;
    }
    
    .settings-panel, .focus-points-panel {
        width: 95%;
        border-radius: 15px;
    }
    
    .settings-header, .focus-points-header {
        border-radius: 15px 15px 0 0;
    }
    
    .settings-header h2, .focus-points-header h2 {
        font-size: 1.3rem;
    }
    
    .settings-content, .focus-points-content {
        padding: 15px;
    }
    
    .settings-group, .focus-point-item {
        margin-bottom: 15px;
    }
    
    .settings-actions {
        padding: 15px;
        border-radius: 0 0 15px 15px;
    }
    
    .btn-save, .btn-add {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    /* Tam ekran modu için mobil ayarlar */
    .fullscreen-mode .timer-circle {
        width: 220px;
        height: 220px;
    }
    
    .fullscreen-mode .timer-display {
        width: 190px;
        height: 190px;
    }
    
    .fullscreen-mode .timer-display span {
        font-size: 2.2rem;
    }
    
    .fullscreen-exit-button {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .action-button span {
        display: none;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 360px) {
    .timer-circle {
        width: 180px;
        height: 180px;
    }
    
    .timer-display {
        width: 150px;
        height: 150px;
    }
    
    .timer-display span {
        font-size: 2rem;
    }
    
    .control-button {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .action-button span {
        display: none;
    }
    
    .action-button i {
        margin-right: 0;
    }
    
    .session-info {
        width: 90%;
    }
    
    /* Tam ekran modu için çok küçük ekranlar */
    .fullscreen-mode .timer-circle {
        width: 200px;
        height: 200px;
    }
    
    .fullscreen-mode .timer-display {
        width: 170px;
        height: 170px;
    }
    
    .fullscreen-mode .timer-display span {
        font-size: 2rem;
    }
}
