
/* Date Section */
.date-section {
    margin-bottom: 20px;
}

.date-section h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #b9bbbe;
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #202225;
    border-radius: 4px;
    background: #40444b;
    color: #dcddde;
    font-size: 0.9rem;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #5865f2;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.3);
}

.input-group input::placeholder,
.input-group select::placeholder {
    color: #72767d;
}

/* Quick Actions Section */
.quick-actions-section {
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #202225;
}

.quick-actions-section h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-btn {
    padding: 8px 12px;
    background: #40444b;
    border: 1px solid #202225;
    border-radius: 4px;
    color: #dcddde;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.quick-btn:hover {
    background: #5865f2;
    border-color: #5865f2;
    color: #ffffff;
    transform: translateY(-1px);
}

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

/* Preview Section */
.preview-content {
    min-height: 400px;
    padding: 15px;
    background: #36393f;
    border-radius: 6px;
    border: 1px solid #202225;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.5;
    overflow-y: auto;
}

.timestamp-preview {
    width: 100%;
}

.timestamp-info {
    background: #2f3136;
    border: 2px solid #40444b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.timestamp-display {
    margin-bottom: 15px;
}

.timestamp-text {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #dcddde;
    letter-spacing: 1px;
    line-height: 1.4;
}

.unix-timestamp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.unix-timestamp .label {
    color: #b9bbbe;
    font-weight: 600;
}

.unix-timestamp .value {
    color: #5865f2;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.formats-section {
    background: #2f3136;
    border: 1px solid #40444b;
    border-radius: 8px;
    padding: 15px;
}

.formats-section h4 {
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
}

.format-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.format-item {
    background: #36393f;
    border: 1px solid #202225;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.format-label {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    margin-bottom: 4px;
    border-bottom: 1px solid #40444b;
    padding-bottom: 4px;
}

.format-code-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.format-code {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #dcddde;
    background: #2f3136;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #202225;
    word-break: break-all;
    flex: 1;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-format-btn {
    padding: 6px 10px;
    background: #40444b;
    border: 1px solid #202225;
    border-radius: 4px;
    color: #dcddde;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    flex-shrink: 0;
    white-space: nowrap;
}

.copy-format-btn:hover {
    background: #5865f2;
    border-color: #5865f2;
    color: #ffffff;
    transform: translateY(-1px);
}

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

/* Custom scrollbar */
.preview-content::-webkit-scrollbar {
    width: 8px;
}

.preview-content::-webkit-scrollbar-track {
    background: #2f3136;
    border-radius: 4px;
}

.preview-content::-webkit-scrollbar-thumb {
    background: #4f545c;
    border-radius: 4px;
    border: 1px solid #2f3136;
}

.preview-content::-webkit-scrollbar-thumb:hover {
    background: #5d6269;
}

/* Firefox scrollbar */
.preview-content {
    scrollbar-width: thin;
    scrollbar-color: #4f545c #2f3136;
}

/* Responsive Design */
@media (max-width: 768px) {
    .editor-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .container {
        padding: 15px;
    }
    
    .header-controls {
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }
    
    .copy-button {
        align-self: flex-end;
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .clear-button {
        align-self: flex-end;
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .input-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .quick-buttons {
        justify-content: center;
    }
    
    .format-grid {
        grid-template-columns: 1fr;
    }
    
    .format-item {
        padding: 10px;
    }
    
    .format-label {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .format-code-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .format-code {
        min-height: 28px;
        font-size: 0.75rem;
        padding: 6px 8px;
    }
    
    .copy-format-btn {
        align-self: center;
        width: 100%;
        max-width: 150px;
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* Hover Effects */
.input-group input:hover,
.input-group select:hover {
    background: #454950;
}

.input-group input[type="checkbox"]:hover {
    transform: scale(1.1);
}

/* Focus states */
.input-group input:focus,
.input-group select:focus {
    background: #454950;
}

/* Animation for generated timestamp */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timestamp-generated {
    animation: fadeIn 0.5s ease;
}

/* Success animation for copy buttons */
@keyframes copySuccess {
    0% { background: #5865f2; }
    50% { background: #43b581; }
    100% { background: #5865f2; }
}

.copy-success {
    animation: copySuccess 0.6s ease;
}
