#total-days,
#weekdays,
#weekends {
    font-size: 20px;
    font-weight: 600;
}

.time-conversion {
    font-size: 1rem;
    color: #6B7280;
    margin-top: 2px;
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #F8FAFC;
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

.header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 16px;
}

.header p {
    font-size: 18px;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
}

.calculator-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 30px;
    text-align: center;
}

.date-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.date-label {
    width: 100px;
    font-weight: 500;
    color: #374151;
}

.date-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
}

.date-select,
.date-input {
    width: 146px;
    height: 40px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 16px;
    background: white;
    color: #374151;
}

.date-select:focus,
.date-input:focus {
    outline: none;
    border-color: #FF8C00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.calendar-icon {
    width: 40px;
    height: 40px;
    /* border: 1px solid #D1D5DB; */
    border-radius: 6px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-icon:hover {
    border-color: #FF8C00;
    background: #FFF7ED;
}

.calendar-icon svg {
    width: 36px;
    height: 36px;
    color: #6B7280;
}

.days-input-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.days-input-container {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
}

.days-input {
    width: 200px;
    height: 40px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 16px;
    text-align: center;
}

.days-buttons {
    display: flex;
    gap: 4px;
}

.days-btn {
    width: 30px;
    height: 20px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #374151;
}

.days-btn:hover {
    background: #F3F4F6;
}

.operation-buttons {
    display: flex;
    gap: 4px;
}

.operation-btn {
    width: 40px;
    height: 36px;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s;
}

.operation-btn:hover {
    border-color: #FF8C00;
    background: #FFF7ED;
}

.operation-btn.active {
    border-color: #FF8C00;
    background: #FF8C00;
    color: white;
}

.options {
    margin-bottom: 30px;
}

.options-label {
    width: 100px;
    font-weight: 500;
    color: #374151;
    vertical-align: top;
    display: inline-block;
}

.options-checkboxes {
    display: inline-block;
    vertical-align: top;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.checkbox-item label {
    font-size: 16px;
    color: #374151;
    cursor: pointer;
}

.calculate-btn {
    width: 100%;
    height: 50px;
    background: #FF8C00;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calculate-btn:hover {
    background: #E67E00;
}

.results {
    margin-top: 30px;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 8px;
    display: none;
}

.results.show {
    display: block;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 18px;
}

.result-item:last-child {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 18px;
    color: #FF8C00;
}

.settings-btn {
    background: #6B7280;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.settings-btn:hover {
    background: #4B5563;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1F2937;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6B7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #374151;
}

.holiday-list {
    margin-bottom: 20px;
}

.holiday-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
}

.holiday-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.holiday-item label {
    flex: 1;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.custom-holidays {
    border-top: 1px solid #E5E7EB;
    padding-top: 20px;
    margin-top: 20px;
}

.custom-holiday-form {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: end;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 4px;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 36px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 14px;
}

.add-holiday-btn {
    background: #FF8C00;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    height: 36px;
}

.add-holiday-btn:hover {
    background: #E67E00;
}

.custom-holiday-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #F9FAFB;
}

.delete-btn {
    background: #EF4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

.delete-btn:hover {
    background: #DC2626;
}

.calendar-icon-bg {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-image: url('../images/calendar-icon.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 24px;
    }

    .header p {
        font-size: 16px;
    }

    .calculator-section {
        padding: 20px;
    }

    .date-row,
    .days-input-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .date-label,
    .options-label {
        width: auto;
        margin-bottom: 5px;
    }

    .date-inputs,
    .days-input-container {
        flex-direction: column;
        gap: 10px;
    }

    .date-select,
    .date-input {
        width: 100%;
    }

    .days-input {
        width: 100%;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }

    .options {
        display: block;
    }

    .options-checkboxes {
        display: block;
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .date-inputs {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .date-select,
    .date-input {
        width: calc(50% - 5px);
    }

    .calendar-icon {
        /* width: 100%; */
        margin-top: 5px;
    }
}