/* Time Calculator Plugin Styles */

.time-calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
    color: #2c3e50;
    line-height: 1.6;
}

/* Заголовок главной страницы */
.header {
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 40px;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: #2c3e50;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 400;
    margin-bottom: 20px;
}

.description {
    max-width: 800px;
    margin: 0 auto;
    color: #34495e;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Сетка калькуляторов */
.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.calculator-card {
    background: #ffffff;
    border: 1px solid #bdc3c7;
    padding: 30px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.calculator-card:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.calc-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.calc-icon {
    font-size: 1.8rem;
    margin-right: 15px;
    color: #3498db;
    font-weight: normal;
}

.calc-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
}

.calc-description {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.calc-features {
    margin-bottom: 25px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 3px 0;
    font-size: 0.85rem;
    color: #34495e;
    position: relative;
    padding-left: 15px;
}

.features-list li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.calc-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.calc-button:hover {
    background: #2980b9;
}

/* Страница калькулятора */
.calculator-page {
   
    margin: 0 auto;
}

.calc-page-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 30px;
}

.calc-page-title {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 10px;
    color: #2c3e50;
}

.calc-page-subtitle {
    color: #7f8c8d;
    font-size: 1rem;
}

/* Форма калькулятора */
.calculator-form {
    background: #ffffff;
    border: 1px solid #bdc3c7;
    padding: 40px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #bdc3c7;
    font-size: 1rem;
    background: #ffffff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

/* Селектор операций */
.operation-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.operation-btn {
    padding: 15px;
    border: 1px solid #bdc3c7;
    background: #ffffff;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.operation-btn:hover {
    background: #ecf0f1;
}

.operation-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Кнопка вычисления */
.calculate-btn {
    width: 100%;
    padding: 15px;
    background: #2ecc71;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calculate-btn:hover {
    background: #27ae60;
}

.calculate-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Результат */
.result-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 30px;
    margin-top: 25px;
}

.result-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-main {
    font-size: 1.8rem;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #dee2e6;
    text-align: center;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.detail-item {
    padding: 15px;
    background: white;
    border: 1px solid #dee2e6;
}

.detail-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
}

/* Информационная секция */
.info-section {
    background: #ffffff;
    border: 1px solid #bdc3c7;
    padding: 25px;
    margin-top: 30px;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    padding: 15px;
    background: #f8f9fa;
    border-left: 3px solid #3498db;
}

.info-item-title {
    font-weight: 500;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 0.9rem;
}

.info-item-desc {
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.5;
}

/* Навигация */
.calc-navigation {
    background: #f8f9fa;
    padding: 20px;
    margin-top: 40px;
    border: 1px solid #e9ecef;
}

.nav-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.nav-item {
    padding: 10px 15px;
    background: white;
    border: 1px solid #dee2e6;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    text-decoration: none;
    color: #34495e;
    display: block;
}

.nav-item:hover {
    background: #ecf0f1;
    border-color: #3498db;
    text-decoration: none;
    color: #2c3e50;
}

.nav-item.current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Состояния загрузки */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .calculate-btn::after {
    content: " ⏳";
}

/* Анимации */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .time-calculator-container {
        padding: 20px 15px;
    }
    
    .main-title, .calc-page-title {
        font-size: 2rem;
    }
    
    .calculators-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-form {
        padding: 25px 20px;
    }
    
    .operation-selector {
        grid-template-columns: 1fr;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calc-header {
        flex-direction: column;
        text-align: center;
    }
    
    .calc-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .nav-grid {
        grid-template-columns: 1fr;
    }
    
    .result-main {
        font-size: 1.4rem;
    }
    
    .calculator-form {
        padding: 20px 15px;
    }
}