/* Timestamp Converter Styles */

.timestamp-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.timestamp-header {
    text-align: center;
    margin-bottom: 2rem;
}

.timestamp-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.timestamp-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Current Time Card */
.current-time-card {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.current-time-label {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.current-time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.time-value {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.time-number {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.time-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.time-separator {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Converter Panels */
.converter-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.converter-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.converter-card h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.875rem;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.input-with-btn {
    display: flex;
    gap: 0.5rem;
}

.input-with-btn input {
    flex: 1;
}

.now-btn {
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Result Box */
.result-box {
    background: var(--dark-bg);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.result-row {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    width: 100px;
    flex-shrink: 0;
}

.result-value {
    flex: 1;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.copy-btn {
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.copy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Reference Section */
.reference-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.reference-section h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.reference-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--dark-bg);
    border-radius: 10px;
}

.ref-name {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.ref-value {
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
}

.ref-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .timestamp-container {
        padding: 1rem;
    }

    .timestamp-header h1 {
        font-size: 2rem;
    }

    .current-time-display {
        flex-direction: column;
        gap: 1rem;
    }

    .time-separator {
        display: none;
    }

    .converter-panels {
        grid-template-columns: 1fr;
    }

    .date-inputs {
        grid-template-columns: 1fr;
    }

    .result-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .result-label {
        width: 100%;
    }

    .copy-btn {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .timestamp-header h1 {
        font-size: 1.8rem;
    }

    .timestamp-header p {
        font-size: 1rem;
    }

    .current-time-card {
        padding: 1rem;
    }

    .time-number {
        font-size: 1.2rem;
    }

    .converter-card {
        padding: 1rem;
    }

    .reference-grid {
        grid-template-columns: 1fr;
    }
}
