.compact-header {
    padding: 30px 20px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.compact-header h1 {
    font-size: 44px !important;
    margin-bottom: 10px;
    letter-spacing: -1.5px;
    font-weight: 700;
}

.compact-header h2 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #888;
    max-width: 600px;
    font-weight: 500;
}

.timestamp-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.timestamp-card {
    background-color: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
    width: 100%;
}

.timestamp-header {
    padding: 30px 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.current-timestamp {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-family: 'Manrope', sans-serif;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    padding-right: 50px;
}

.timestamp-label {
    font-size: 14px;
    color: var(--color-secondary);
}

.timestamp-content {
    padding: 30px;
}

.converter-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.converter-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--color-primary);
}

.input-group {
    display: flex;
    margin-bottom: 20px;
    gap: 12px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-secondary);
}

.form-control {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color var(--transition-fast);
}

#timestampInput {
    max-width: 200px;
    flex: 0 1 auto;
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: none;
}

.btn {
    padding: 10px 16px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    height: 44px;
}

.date-time-inputs {
    margin-bottom: 20px;
    max-width: 600px;
}

.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.input-row .input-group {
    margin-bottom: 0;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.input-row .input-group div {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}

.input-row .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    height: 44px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.result-container {
    margin-top: 20px;
}

.result-success {
    background-color: rgba(0, 128, 0, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 128, 0, 0.1);
}

.result-error {
    background-color: rgba(255, 0, 0, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 0, 0.1);
    color: #d32f2f;
}

.result-success h4 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
}

.result-item {
    display: flex;
    margin-bottom: 10px;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-label {
    font-weight: 600;
    width: 120px;
    flex-shrink: 0;
}

.result-value {
    word-break: break-word;
    display: flex;
    align-items: center;
    width: calc(100% - 120px);
}

.formats-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.formats-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--color-primary);
}

.formats-table, .conversions-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.formats-table th, .formats-table td,
.conversions-table th, .conversions-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.formats-table td:last-child {
    position: relative;
    padding-right: 45px;
}

.formats-table th, .conversions-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.formats-table tr:nth-child(even),
.conversions-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.info-section {
    margin-bottom: 20px;
}

.info-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--color-primary);
}

.info-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 30px 0 20px;
    color: var(--color-primary);
}

.info-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.current-timestamp .copy-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
}

.result-copy-btn {
    position: static;
    margin-left: 10px;
    transform: none;
}

.copy-btn svg {
    width: 16px;
    height: 16px;
    fill: var(--color-primary);
    opacity: 1;
}

.copy-btn.copied-animation {
    background-color: rgba(0, 0, 0, 0.15);
}

.copy-btn.copied-animation svg {
    opacity: 0;
}

.copy-btn.copied-animation::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
    color: #333;
    opacity: 1;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media (max-width: 768px) {
    .compact-header h1 {
        font-size: 32px !important;
    }
    
    .timestamp-content {
        padding: 20px;
    }
    
    .current-timestamp {
        font-size: 30px;
    }
    
    .input-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .result-item {
        flex-direction: column;
    }
    
    .result-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .result-value {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .compact-header h1 {
        font-size: 28px !important;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control {
        margin-bottom: 10px;
    }
    
    .input-group .btn {
        width: 100%;
    }
}