* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 10px;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

/* Tablet ve desktop için padding artırma */
@media (min-width: 768px) {
    body {
        padding: 20px;
    }
}



.main-layout {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
    align-items: flex-start;
}

/* Tablet ve desktop için yatay layout */
@media (min-width: 768px) {
    .main-layout {
        flex-direction: row;
        gap: 40px;
    }
}

.controls-panel {
    flex: 0 0 320px;
    min-width: 280px;
    max-height: 100vh;
    overflow-y: auto;
    position: relative;
    margin-top: 15px;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

/* ====== DESKTOP SIDE PANEL (MEVCUT) ====== */
@media (min-width: 768px) {
    .main-layout {
        flex-direction: row;
        height: auto;
        overflow: visible;
    }
    
    .controls-panel {
        position: sticky;
        top: 0;
        margin-top: 40px;
        /* Mevcut side panel stilleri korunuyor */
        bottom: auto;
        left: auto;
        right: auto;
        height: auto;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        z-index: auto;
        transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
        overflow-y: auto;
        padding-top: 0;
    }
    
    /* Desktop only - mobile'da override olmasın */
    @media (min-width: 768px) {
        .controls-panel.panel-open {
            bottom: auto;
        }
    }
    
    .controls-panel::before {
        display: none;
    }
    
    .clock-panel {
        order: 0;
        flex: 1;
        min-height: 100vh;
        position: static;
        transition: margin-left 0.8s ease-in-out;
        /* Desktop'ta mobile flexbox override */
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 0;
    }
    
    /* Desktop only - mobile'da override olmasın */
    @media (min-width: 768px) {
        .clock-container {
            position: relative;
            top: auto;
            left: auto;
            transform: none;
            transition: none;
        }
        
        .panel-open .clock-container {
            transform: none;
        }
        }
        
        /* Desktop'ta panel-open durumunda alignment değişmesin */
        .panel-open .clock-panel {
            align-items: center;
            padding-top: 0;
        }
        
        .panel-toggle {
            display: flex;
        }
    }

.controls-panel.hidden {
    transform: translateX(-100%);
    opacity: 0;
}

.clock-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    transition: margin-left 0.8s ease-in-out;
}

/* Tablet ve desktop için tam yükseklik */
@media (min-width: 768px) {
    .clock-panel {
        min-height: 100vh;
    }
}

.clock-panel.fullscreen {
    margin-left: -320px;
}

.panel-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    font-weight: bold;
    color: #888;
    /* Touch-friendly minimum size */
    min-width: 44px;
    min-height: 44px;
}

.panel-toggle:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #555;
}

.toggle-icon-text {
    color: #888;
    font-size: 18px;
    font-family: monospace;
    transition: color 0.3s ease;
    line-height: 1;
}

/* Tablet ve desktop için daha büyük boyut */
@media (min-width: 768px) {
    .panel-toggle {
        top: 60px;
        left: 40px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .toggle-icon-text {
        font-size: 25px;
    }
}

.clock-container {
    position: relative;
    width: min(85vw, 350px);
    height: min(85vw, 350px);
    max-width: 580px;
    max-height: 580px;
}



/* Tablet boyutu */
@media (min-width: 768px) {
    .clock-container {
        width: min(50vw, 450px);
        height: min(50vw, 450px);
    }
}

/* Desktop boyutu */
@media (min-width: 1024px) {
    .clock-container {
        width: 580px;
        height: 580px;
    }
}



.clock {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: white;
    border: 10px solid #333;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.number {
    position: absolute;
    width: 35px;
    height: 35px;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    transform-origin: 50% 50%;
}

/* Rakamların konumlandırılması */
.number12 { top: 10px; left: 50%; transform: translateX(-50%); }
.number1 { top: 10%; right: 25%; }
.number2 { top: 25%; right: 10%; }
.number3 { top: 50%; right: 10px; transform: translateY(-50%); }
.number4 { bottom: 25%; right: 10%; }
.number5 { bottom: 10%; right: 25%; }
.number6 { bottom: 10px; left: 50%; transform: translateX(-50%); }
.number7 { bottom: 10%; left: 25%; }
.number8 { bottom: 25%; left: 10%; }
.number9 { top: 50%; left: 10px; transform: translateY(-50%); }
.number10 { top: 25%; left: 10%; }
.number11 { top: 10%; left: 25%; }



.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: 50% 100%;
    background-color: #333;
    border-radius: 4px;
    transform: translateX(-50%);
}

.hour-hand {
    width: 10px;
    height: 35%;
    background-color: #333;
}

.minute-hand {
    width: 6px;
    height: 45%;
    background-color: #666;
}

.second-hand {
    width: 3px;
    height: 50%;
    background-color: #ff0000;
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background-color: #333;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0px 8px 8px 8px;
}

.control-section {
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.control-section h3 {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-icon {
    font-size: 16px;
}

.exam-selector select {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.time-inputs input {
    width: 60px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.time-inputs span {
    font-weight: bold;
    font-size: 16px;
}

.session-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.session-btn {
    flex: 1;
    min-width: 60px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.session-btn:hover {
    background: #f5f5f5;
}

.session-btn.selected {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.session-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button-group {
    display: flex;
    gap: 6px;
}

.primary-btn, .secondary-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.primary-btn {
    background: #4CAF50;
    color: white;
}

.primary-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.primary-btn.stop {
    background: #f44336;
}

.primary-btn.stop:hover {
    background: #da190b;
}

.secondary-btn {
    background: #ddd;
    color: #666;
}

.secondary-btn:hover:not(:disabled) {
    background: #ccc;
    transform: translateY(-1px);
}

.secondary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.exam-info {
    min-height: 60px;
}

.current-session {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.time-remaining {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.time-remaining.warning {
    color: #ff4444;
    font-weight: bold;
    animation: pulse 1s infinite;
}

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

.schedule-info {
    font-size: 12px;
    line-height: 1.4;
}

.schedule-session {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.schedule-session:last-child {
    border-bottom: none;
}

.session-time {
    color: #666;
    font-size: 11px;
}

.session-duration {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
}

.duration-exam {
    background: #e3f2fd;
    color: #1976d2;
}

.duration-break {
    background: #fff3e0;
    color: #f57c00;
}

.accordion-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.accordion-toggle {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #666;
}

.accordion-toggle.collapsed {
    transform: none !important;
}

.accordion-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.collapsed {
    max-height: 0;
}

.accordion-content.expanded {
    max-height: 300px;
}

/* 
TODO: Reklam Bölümü Stilleri - Gelecek özellik için hazırlık

.ad-section {
    margin-top: 15px;
    border: 2px dashed #ddd;
    background: #f9f9f9;
}

.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.ad-placeholder {
    text-align: center;
    color: #999;
    font-size: 12px;
}

.ad-placeholder p {
    margin: 0 0 5px 0;
    font-weight: bold;
}

.ad-placeholder span {
    font-size: 10px;
    color: #ccc;
}

@media (max-width: 480px) {
    .ad-container {
        min-height: 150px;
    }
}
*/ 