/* Стили для формы создания коммерческого предложения */
.commercial-proposal-section {
    margin: 30px 0;
    padding: 25px;
    border: 2px solid #0073aa;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.1);
    position: relative;
    overflow: hidden;
}

.commercial-proposal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073aa 0%, #005a87 50%, #0073aa 100%);
}

.commercial-proposal-section h3 {
    color: #0073aa;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.commercial-proposal-section p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.commercial-proposal-section .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.commercial-proposal-section .form-row .form-field {
    flex: 1;
}

.commercial-proposal-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.commercial-proposal-section input[type="text"],
.commercial-proposal-section input[type="email"],
.commercial-proposal-section input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.commercial-proposal-section input[type="text"]:focus,
.commercial-proposal-section input[type="email"]:focus,
.commercial-proposal-section input[type="tel"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    transform: translateY(-1px);
}

.commercial-proposal-section .required-field {
    color: #e74c3c;
    font-weight: bold;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

#generate-proposal-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
    position: relative;
    overflow: hidden;
}

#generate-proposal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#generate-proposal-btn:hover::before {
    left: 100%;
}

#generate-proposal-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004666 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
}

#generate-proposal-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 115, 170, 0.4);
}

#generate-proposal-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

#proposal-loading {
    color: #0073aa;
    font-weight: 600;
    margin-left: 15px;
    font-size: 14px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.cp-success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(21, 87, 36, 0.1);
    animation: slideIn 0.3s ease;
}

.cp-error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(114, 28, 36, 0.1);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для админ панели */
.cp-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.cp-stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 150px;
    border-top: 4px solid #0073aa;
    transition: transform 0.2s ease;
}

.cp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.cp-stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.cp-stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.cp-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cp-status-draft {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.cp-status-sent {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.cp-status-accepted {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cp-status-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Улучшенные стили для таблицы */
.wp-list-table.striped > tbody > :nth-child(odd) {
    background-color: #f9f9f9;
}

.wp-list-table th {
    background: #0073aa;
    color: white;
    font-weight: 600;
}

.wp-list-table td {
    padding: 12px 8px;
    vertical-align: middle;
}

.wp-list-table .button-small {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border: none;
    transition: background 0.3s ease;
}

.wp-list-table .button-small:hover {
    background: #005a87;
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .commercial-proposal-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .commercial-proposal-section .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    #generate-proposal-btn {
        width: 100%;
        padding: 15px;
    }
    
    .cp-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .wp-list-table th,
    .wp-list-table td {
        padding: 8px 4px;
        font-size: 12px;
    }
}

/* Стили для информационного блока в настройках */
.cp-info-box {
    background: #f0f8ff;
    border: 1px solid #0073aa;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.cp-info-box h3 {
    margin-top: 0;
    color: #0073aa;
}

.cp-info-box ul {
    margin: 0;
}

.cp-info-box code {
    background: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}