/* Общие стили подключены через common.css */

.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

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

.clear-btn {
    position: absolute;
    right: 8px;
    width: 28px;
    height: 28px;
    background: #cbd5e0;
    color: #4a5568;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: inherit;
    line-height: 1;
    padding: 0;
    user-select: none;
}

.clear-btn:hover {
    background: #a0aec0;
    color: #2d3748;
    transform: scale(1.1);
}

.clear-btn:active {
    transform: scale(0.95);
}

.toggle-section {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.toggle-btn {
    width: 100%;
    padding: 16px;
    background: #f7fafc;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    transition: background 0.2s;
    font-family: inherit;
}

.toggle-btn:hover {
    background: #edf2f7;
}

.toggle-icon {
    transition: transform 0.3s;
    font-size: 12px;
    color: #667eea;
}

.toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.options-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 16px;
}

.options-panel.open {
    max-height: 1000px;
    padding: 24px 16px;
}

.options-panel .form-group:not(:first-child) {
    margin-top: 24px;
}

.date-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.date-input {
    width: 100%;
}

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

.quick-btn {
    flex: 1;
    min-width: 0;
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.quick-btn:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

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


.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result {
    margin-top: 32px;
    padding: 24px;
    background: #f0fff4;
    border: 2px solid #9ae6b4;
    border-radius: 8px;
    animation: slideUp 0.4s ease-out;
}

.result-success h2 {
    font-size: 20px;
    color: #22543d;
    margin-bottom: 16px;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-label {
    font-size: 14px;
    font-weight: 600;
    color: #2f855a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alias-container {
    display: flex;
    gap: 8px;
}

.alias-input {
    flex: 1;
    padding: 12px 16px;
    background: white;
    border: 2px solid #9ae6b4;
    border-radius: 8px;
    font-size: 16px;
    color: #2d3748;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    padding: 12px 24px;
    background: #48bb78;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #38a169;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(72, 187, 120, 0.3);
}

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

.copy-btn.copied {
    background: #22543d;
}

@media (max-width: 640px) {
    .quick-date-buttons {
        flex-direction: column;
    }

    .quick-btn {
        width: 100%;
        flex: none;
    }

    .alias-container {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
    }
}
