/* ============================================
   Timestamp Converter Styles
   ============================================ */

/* Variables */
:root {
    --timestamp-primary-color: #007bff;
    --timestamp-success-color: #28a745;
    --timestamp-error-color: #dc3545;
}

/* Base Styles */
.timestamp-converter-container {
    max-width: 100%;
}

/* Form Styling */
#timestampForm {
    background-color: var(--neutral--700);
    border: 1px solid var(--neutral--600);
    border-radius: 12px;
    padding: 20px;
}

#timestampForm .form-label {
    color: var(--neutral--100);
    font-weight: 600;
    margin-bottom: 8px;
}

#timestampForm .form-control,
#timestampForm .form-select {
    background-color: var(--neutral--800);
    border: 1px solid var(--neutral--600);
    color: var(--neutral--100);
    border-radius: 8px;
}

#timestampForm .form-control:focus,
#timestampForm .form-select:focus {
    background-color: var(--neutral--800);
    border-color: var(--timestamp-primary-color);
    color: var(--neutral--100);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#timestampForm .form-control::placeholder {
    color: var(--neutral--400);
}

/* Result Container */
#timestampResultContainer {
    margin-top: 20px;
}

#timestampResultContainer .alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: var(--timestamp-success-color);
    border-radius: 8px;
}

#timestampResultContainer .alert-success strong {
    color: var(--neutral--100);
}

#timestampResultContainer #timestampResult {
    color: var(--neutral--200);
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* Error Container */
#timestampErrorContainer .alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--timestamp-error-color);
    color: var(--timestamp-error-color);
    border-radius: 8px;
}

/* Content Sections */
.content-sections {
    color: var(--neutral--200);
}

.content-sections h2 {
    color: var(--neutral--100);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.content-sections h3 {
    color: var(--neutral--100);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.content-sections p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-sections ul,
.content-sections ol {
    margin-left: 1.25rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-sections ul li,
.content-sections ol li {
    margin-bottom: 0.5rem;
    color: var(--neutral--200);
}

.content-sections code {
    background-color: var(--neutral--800);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--timestamp-primary-color);
}

/* Alert Styling */
.alert-info {
    background-color: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.3);
    color: var(--neutral--100);
}

.alert-info i {
    color: #007bff;
}

.alert-light {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--neutral--600);
    color: var(--neutral--200);
}

.alert-light h5 {
    color: var(--neutral--100);
    margin-bottom: 1rem;
}

.alert-light ul li {
    margin-bottom: 0.5rem;
}

/* Example Cards Styles */
.example-card {
    background-color: var(--neutral--700);
    border: 1px solid var(--neutral--600);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.example-card:hover {
    border-color: var(--neutral--500);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.example-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.example-header i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.example-header h6 {
    margin: 0;
    color: var(--neutral--100);
    font-weight: 600;
    font-size: 0.95rem;
}

.example-preview {
    position: relative;
    max-height: 120px;
    overflow: hidden;
}

.example-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, var(--neutral--700));
    pointer-events: none;
}

.example-preview code {
    font-size: 13px;
    line-height: 1.4;
    color: var(--neutral--300);
    display: block;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'Courier New', Courier, monospace;
}

.example-card:hover .example-preview {
    opacity: 0.9;
}

/* FAQ Styling */
.faq-container {
    margin-top: 1.5rem;
}


.faq-question {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: var(--neutral--600);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neutral--100);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--timestamp-primary-color);
    transition: transform 0.3s ease;
    line-height: 1;
    min-width: 24px;
    text-align: center;
}

.faq-answer {
    display: none;
    padding: 0 20px 20px 20px;
    color: var(--neutral--200);
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    #timestampForm {
        padding: 15px;
    }

    .example-card {
        margin-bottom: 15px;
    }

    .example-preview {
        max-height: 80px;
    }

    .example-preview code {
        font-size: 11px;
    }

    .content-sections h2 {
        font-size: 1.5rem;
    }

    .content-sections h3 {
        font-size: 1.25rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-question {
        padding: 12px 16px;
    }

    .faq-answer {
        padding: 0 16px 16px 16px;
    }
}

@media (max-width: 576px) {
    #timestampForm {
        padding: 12px;
    }

    .example-preview code {
        font-size: 10px;
    }
}
