/* Reset and Base Styles */
.time-calculator-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap');

.time-calculator-container {
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #eeeeee;
    padding: 30px;
    max-width: 800px;
    margin: 20px auto;
    background: #eeeeee;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
    border: 1px solid #bbbbbb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header Styles */
.calculator-header {
    background: #eeeeee;
    color: #000000;
    padding: 25px 0;
    text-align: center;
    border-bottom: 1px solid #bbbbbb;
    margin-bottom: 20px;
}

.calculator-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1976ea;
}

.calculator-header p {
    font-size: 1.1rem;
    color: #000000;
    font-weight: 500;
}

/* Tab Styles */
.calculator-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #bbbbbb;
    margin-bottom: 25px;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000000;
    border-right: 1px solid #bbbbbb;
    font-family: 'Manrope', sans-serif;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background-color: #e0e0e0;
    color: #000000;
}

.tab-btn.active {
    background-color: #1976ea;
    color: #ffffff;
}

/* Content Styles */
.calculator-content {
    padding: 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.input-group {
    margin-bottom: 25px;
    padding: 0 10px;
}

.time-input, .duration-input {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000000;
    font-family: 'Manrope', sans-serif;
}

input[type="time"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #bbbbbb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #000000;
    background-color: #ffffff;
    font-family: 'Manrope', sans-serif;
}

input[type="time"]:focus {
    border-color: #1976ea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 118, 234, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #bbbbbb;
}

.checkbox-group input {
    margin-right: 10px;
}

.checkbox-group label {
    color: #000000;
    margin-bottom: 0;
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
}

.duration-fields {
    display: flex;
    gap: 15px;
}

.duration-field {
    flex: 1;
}

.duration-field input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #bbbbbb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #000000;
    background-color: #ffffff;
    text-align: center;
    font-family: 'Manrope', sans-serif;
}

.duration-field input:focus {
    border-color: #1976ea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 118, 234, 0.1);
}

.duration-field label {
    text-align: center;
    color: #000000;
    font-weight: 500;
    margin-top: 5px;
    font-family: 'Manrope', sans-serif;
}

.operation-buttons {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #bbbbbb;
}

.operation-btn {
    flex: 1;
    padding: 12px 20px;
    background-color: #ffffff;
    border: 2px solid #1976ea;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1976ea;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
}

.operation-btn:hover {
    background-color: #219b92;
    color: #ffffff;
    border-color: #219b92;
    transform: translateY(-1px);
}

.operation-btn.active {
    background-color: #1976ea;
    color: #ffffff;
    border-color: #1976ea;
    transform: translateY(0);
}

.calculate-btn {
    width: 100%;
    padding: 16px 20px;
    background: #1976ea;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(25, 118, 234, 0.3);
    font-family: 'Manrope', sans-serif;
    border: 1px solid #1976ea;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 234, 0.4);
    background: #219b92;
    border-color: #219b92;
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Result Styles */
.result-container {
    margin-top: 25px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #1976ea;
    display: none;
    animation: slideIn 0.3s ease-out;
    border: 1px solid #bbbbbb;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.result-container.active {
    display: block;
}

.result-container h3 {
    color: #000000;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
}

.result-container p {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #000000;
    line-height: 1.5;
    font-family: 'Manrope', sans-serif;
}

.result-container strong {
    color: #000000;
}

/* Info Section */
.calculator-info {
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #bbbbbb;
    margin-top: 30px;
}

.calculator-info h3 {
    margin-bottom: 20px;
    color: #000000;
    font-weight: 700;
    text-align: center;
    font-family: 'Manrope', sans-serif;
}

.info-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.info-item {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #bbbbbb;
    transition: transform 0.2s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-item h4 {
    color: #1976ea;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Manrope', sans-serif;
}

.info-item p {
    color: #000000;
    margin-bottom: 0;
    line-height: 1.5;
    font-family: 'Manrope', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .time-calculator-container {
        padding: 20px;
        margin: 15px;
    }
    
    .duration-fields {
        flex-direction: column;
        gap: 12px;
    }
    
    .info-content {
        flex-direction: column;
    }
    
    .calculator-header h1 {
        font-size: 1.8rem;
    }
    
    .calculator-header p {
        font-size: 1rem;
    }
    
    .calculator-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-right: none;
        border-bottom: 1px solid #bbbbbb;
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .time-calculator-container {
        padding: 15px;
        margin: 10px;
    }
    
    .calculator-content {
        padding: 0;
    }
    
    .calculator-header {
        padding: 20px 0;
    }
    
    .calculator-header h1 {
        font-size: 1.6rem;
    }
    
    .input-group {
        padding: 0 5px;
    }
    
    .operation-buttons {
        flex-direction: column;
        gap: 10px;
    }
}