/**
 * Timezone Converter Tool - Modern Styles
 */

.timezone-converter-tool {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.tool-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
}

/* Converter Container */
.converter-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

.converter-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
}

.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input,
.input-group select {
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    width: 100%;
    box-sizing: border-box;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.input-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
    cursor: pointer;
}

.input-group input[type="datetime-local"] {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

/* Full-width time input */
.time-inputs .input-group:first-child {
    grid-column: 1 / -1;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    will-change: transform, box-shadow;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    flex: 1;
    min-width: 160px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #ffffff;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #374151;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: #ffffff;
}

/* Results Section */
.results-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f3f4f6;
    animation: fadeIn 0.3s ease;
}

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

.conversion-display {
    margin-bottom: 25px;
}

.conversion-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

.from-time,
.to-time {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.time-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#display-from-time,
#display-to-time {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

#display-from-zone,
#display-to-zone {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

.conversion-arrow {
    font-size: 32px;
    color: #667eea;
    font-weight: 700;
    padding: 0 20px;
}

.time-difference {
    text-align: center;
    padding: 16px;
    background: #f0f9ff;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
}

.difference-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 10px;
}

#time-difference {
    font-size: 16px;
    font-weight: 700;
    color: #1e40af;
}

/* Timezone Info */
.timezone-info {
    margin-top: 25px;
}

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

.info-item {
    padding: 20px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.info-item:hover {
    background: #ffffff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.info-content {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.zone-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.current-time {
    font-weight: 600;
    color: #1f2937;
}

.timezone-offset {
    color: #667eea;
    font-weight: 600;
}

.timezone-name {
    color: #6b7280;
    font-size: 13px;
}

/* Quick Conversions */
.quick-conversions {
    margin: 30px 0;
    padding: 25px;
    background: #f8fafc;
    border-radius: 16px;
}

.quick-conversions h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.quick-item {
    padding: 16px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.quick-item:hover {
    background: #ffffff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.quick-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.quick-time {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

/* Timezone Categories */
.timezone-categories {
    margin: 30px 0;
}

.timezone-categories h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

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

.category-section {
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
}

.category-section h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.zone-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zone-item {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zone-item:hover {
    background: #ffffff;
    border-color: #667eea;
    transform: translateX(4px);
}

.zone-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.zone-offset {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

/* Meeting Planner */
.meeting-planner {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border: 2px solid #bfdbfe;
    border-radius: 16px;
}

.meeting-planner h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 20px;
}

.planner-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: end;
    margin-bottom: 20px;
}

.meeting-result {
    margin-top: 20px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}

.meeting-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.meeting-time {
    font-size: 16px;
    color: #1e40af;
    line-height: 1.6;
}

.meeting-note {
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
}

/* Timezone Facts */
.timezone-facts {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
}

.timezone-facts h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

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

.fact-item {
    padding: 20px;
    background: #f8fafc;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.fact-item:hover {
    background: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.fact-title {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.fact-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* Conversion History */
.conversion-history {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
}

.conversion-history h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

#history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    padding: 16px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: #ffffff;
    border-color: #667eea;
    transform: translateX(4px);
}

.history-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.history-conversion {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

.history-time {
    font-size: 13px;
    color: #6b7280;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #9ca3af;
}

.history-difference {
    font-weight: 600;
    color: #667eea;
}

.no-history {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 20px;
}

/* Status Messages */
.status-message {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.status-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .timezone-converter-tool {
        padding: 15px;
    }
    
    .tool-header {
        padding: 20px 15px;
    }
    
    .tool-header h3 {
        font-size: 1.5rem;
    }
    
    .converter-container {
        padding: 20px;
    }
    
    .time-inputs {
        grid-template-columns: 1fr;
    }
    
    .conversion-result {
        flex-direction: column;
        gap: 15px;
    }
    
    .conversion-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .planner-inputs {
        grid-template-columns: 1fr;
    }
    
    .info-grid,
    .categories-grid,
    .facts-content {
        grid-template-columns: 1fr;
    }
    
    .quick-grid {
        grid-template-columns: 1fr;
    }
}

