/* Reset styles just for our calculator */
.cc-isolated-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

/* Isolation container */
.cc-isolated-container {
    background-color: #f8f9fa;
    font-size: 16px;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    padding: 0px;
    width: 100%;
    max-width: 100%;
}

.cc-container {
    max-width: 800px;
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 0 auto;
}

/* Header Styles */
.cc-header {
    text-align: center;
    margin-bottom: 15px;
}

.cc-isolated-container h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 35px;
    color: #000000;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 700;
}

.cc-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.cc-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #007BFF, transparent);
    border-radius: 3px;
}

.cc-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.cc-divider {
    border: none;
    border-top: 1px solid #ffffff;
    margin-bottom: 20px;
}

/* Category Tabs */
.cc-category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.cc-tab-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background-color: #f0f0f0;
    color: #333;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cc-tab-btn:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cc-tab-btn.active {
    background-color: #007BFF;
    color: white;
}

/* Converter Section */
.cc-converter-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.cc-from-column, .cc-to-column {
    flex: 1;
}

.cc-isolated-container h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.cc-isolated-container input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #000000;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
}

.cc-unit-list {
    border: 1px solid #000000;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.cc-unit-item {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cc-unit-item:hover {
    background-color: #e9f5ff;
}

.cc-unit-item.selected {
    background-color: #007BFF;
    color: white;
}

/* Result Section */
.cc-result-section {
    margin-top: 30px;
    padding: 0 0px;
    border: 1px solid #000000;
}

.cc-result-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cc-result-header {
    background-color: #1686ff;
    color: #3a3a3a;
    padding: 16px;
    font-weight: 600;
    font-size: 25px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    letter-spacing: 0.5px;
}

.cc-result-content {
    padding: 25px 20px;
    text-align: center;
    background-color: #ffffff;
}

#result-text {
    font-size: 24px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin: 0;
    letter-spacing: -0.5px;
}

.cc-result-formula {
    padding: 12px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eaeaea;
    color: #000000;
    font-size: 18px;
    text-align: center;
    font-family: "Courier New", monospace;
}

/* Scrollbar Styling */
.cc-unit-list::-webkit-scrollbar {
    width: 8px;
}

.cc-unit-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cc-unit-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.cc-unit-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Add styles for timezone conversion */
.cc-timezone-section {
    margin: 20px 0;
    padding: 0 10px;
}

.cc-timezone-input {
    background-color: #f5f9ff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.cc-timezone-input h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.cc-timezone-input h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #007BFF;
    border-radius: 3px;
}

.cc-timezone-input h4 {
    margin: 10px 0;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #555;
}

/* Enhanced datetime input styling */
.cc-datetime-input-container {
    position: relative;
    margin-bottom: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 15px;
    border: 1px solid #e0e0e0;
}

.cc-datetime-input-container label {
    display: block;
    font-size: 14px;
    color: #000000;
    margin-bottom: 8px;
}

#timezone-datetime-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    background-color: #f8f8f8;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

#timezone-datetime-input:hover, 
#timezone-datetime-input:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#timezone-datetime-input::-webkit-calendar-picker-indicator {
    opacity: 0.7;
    cursor: pointer;
}

#timezone-datetime-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.cc-timezone-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cc-timezone-from, .cc-timezone-to {
    flex: 1;
    min-width: 200px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 15px;
    border: 1px solid #e0e0e0;
}

.cc-timezone-section select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background-color: #f8f8f8;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    padding-right: 30px;
}

.cc-timezone-section select:hover,
.cc-timezone-section select:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.cc-convert-btn {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 25px;
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
    display: block;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cc-convert-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 123, 255, 0.25);
}

.cc-convert-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.cc-timezone-result {
    background: linear-gradient(145deg, #f5f9ff, #e4f1ff);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    padding: 20px;
}

.cc-timezone-result h3 {
    margin-bottom: 15px;
    color: #333;
    position: relative;
    display: inline-block;
}

.cc-timezone-result h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #007BFF;
    border-radius: 3px;
}

#timezone-result-display {
    background-color: white;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    font-size: 16px;
    min-height: 60px;
}

.timezone-result-content {
    color: #444;
}

.timezone-result-content p {
    margin: 12px 0;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.timezone-result-content p:last-child {
    border-bottom: none;
}

.timezone-result-content strong {
    color: #333;
    margin-right: 5px;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    .cc-converter-section {
        flex-direction: column;
    }
    
    .cc-category-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .cc-tab-btn {
        flex: 0 0 auto;
    }
    
    #result-text {
        font-size: 20px;
    }
    
    .cc-result-header {
        padding: 12px;
    }
    
    .cc-result-content {
        padding: 20px 15px;
    }
} 