/**
 * Time Calculator Styles
 */

/* Ana Konteyner */
.time-calculator-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.calculator-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #505050;
}

.time-calculator {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Sekmeler */
.calculator-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 5px;
    position: relative;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tab-button:hover {
    color: #4f46e5;
}

.tab-button.active {
    color: #4f46e5;
    font-weight: 600;
}

.tab-button.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4f46e5;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

/* Zaman Tablosu */
.time-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.time-table th, 
.time-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.time-table th {
    background-color: #f7f7f7;
    font-weight: 600;
    color: #444;
}

.time-table input[type="number"] {
    width: 70px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out;
}

.time-table input[type="number"]:focus {
    border-color: #4f46e5;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

.time-table .result-value {
    font-weight: 600;
    color: #4f46e5;
    font-size: 1.1em;
}

.time-table .operation-row {
    background-color: #f8f9fa;
}

.time-table .result-row {
    background-color: #f0f0f0;
}

/* Radyo Butonları */
.radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
}

.text-center {
    text-align: center;
    justify-content: center;
}

/* Tarih-Zaman Giriş Alanları */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.datetime-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 150px;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 5px;
}

.time-inputs input[type="number"] {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.now-btn {
    padding: 8px 12px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.now-btn:hover {
    background-color: #5a6268;
}

/* Zaman Giriş Izgara Düzeni */
.time-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.time-input-group {
    display: flex;
    flex-direction: column;
}

.time-input-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.time-input-group input {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* İfade Giriş Alanı */
.expression-input {
    margin-bottom: 20px;
}

.expression-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.expression-help {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #6c757d;
}

.expression-input input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: monospace;
}

/* Hesapla ve Sıfırla Butonları */
.calculator-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.calc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

#calculate-time, #calculate-date-time, #calculate-expression {
    background-color: #4f46e5;
    color: white;
}

#calculate-time:hover, #calculate-date-time:hover, #calculate-expression:hover {
    background-color: #4338ca;
}

#reset-time, #reset-date-time, #reset-expression {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #495057;
}

#reset-time:hover, #reset-date-time:hover, #reset-expression:hover {
    background-color: #e9ecef;
}

/* Sonuç Alanları */
.time-result {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #4f46e5;
}

.result-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.result-label {
    font-weight: 500;
    color: #495057;
}

.result-value {
    font-weight: 600;
    color: #4f46e5;
}

/* Hesaplama Adımları */
.calculation-steps {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.calculation-steps h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.steps-container {
    line-height: 1.6;
}

.step {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.step:last-child {
    border-bottom: none;
}

.step-title {
    font-weight: 600;
    color: #4f46e5;
}

.no-steps {
    color: #6c757d;
    font-style: italic;
}

/* Bilgi Bölümü */
.calculator-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.calculator-info h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #343a40;
}

.calculator-info h3 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #495057;
}

.calculator-info p {
    line-height: 1.7;
    color: #6c757d;
    margin-bottom: 15px;
}

.calculator-info ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.calculator-info li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #6c757d;
}

/* Bilgi Tablosu */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.info-table th, 
.info-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #dee2e6;
}

.info-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.info-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .datetime-input-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .date-input {
        width: 100%;
    }
    
    .time-inputs {
        width: 100%;
        justify-content: flex-start;
    }
    
    .time-inputs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-item {
        flex-direction: column;
    }
    
    .result-label {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .calculator-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
        text-align: center;
    }
    
    .time-table th, 
    .time-table td {
        padding: 8px 5px;
        font-size: 14px;
    }
    
    .time-table input[type="number"] {
        width: 50px;
        padding: 5px;
    }
    
    .time-inputs-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-buttons {
        flex-direction: column;
    }
    
    .calc-btn {
        width: 100%;
    }
} 