/* استایل‌های عمومی برای front-end */
.adv-pro-public-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.adv-pro-public-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: #667eea;
    color: white;
    border-radius: 15px;
}

.adv-pro-public-header h1 {
    font-size: 3em;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.adv-pro-public-header p {
    font-size: 1.3em;
    margin: 0;
    opacity: 0.9;
}

.adv-pro-public-form {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.adv-pro-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 0;
    min-height: 800px;
}

.adv-pro-sidebar {
    background: #f8f9fa;
    padding: 30px;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
}

.adv-pro-form-section {
    margin-bottom: 40px;
}

.adv-pro-form-section h3 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 1.4em;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    font-weight: 600;
}

.adv-pro-form-group {
    margin-bottom: 25px;
}

.adv-pro-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1em;
}

.adv-pro-form-group input,
.adv-pro-form-group textarea,
.adv-pro-form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.adv-pro-form-group input:focus,
.adv-pro-form-group textarea:focus,
.adv-pro-form-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.adv-pro-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.adv-pro-backgrounds {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.adv-pro-bg-option {
    border: 3px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.adv-pro-bg-option:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

.adv-pro-bg-option.selected {
    border-color: #2ecc71;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.3);
    transform: translateY(-2px);
}

.adv-pro-bg-option img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.adv-pro-editor {
    display: flex;
    flex-direction: column;
    background: white;
}

.adv-pro-canvas-container {
    flex: 1;
    padding: 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adv-pro-canvas {
    width: 800px;
    height: 600px;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: white;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
}

.adv-pro-element {
    position: absolute;
    min-width: 50px;
    min-height: 30px;
    cursor: move;
    user-select: none;
    border: 2px dashed transparent;
    transition: all 0.3s ease;
    padding: 8px;
    box-sizing: border-box;
}

.adv-pro-element:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.adv-pro-element.selected {
    border-color: #2ecc71;
    border-style: solid;
    background: rgba(46, 204, 113, 0.1);
}

.adv-pro-content {
    padding: 12px 16px;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 25px;
    background: rgba(255,255,255,0.95);
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 24px;
    color: #000000;
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    line-height: 1.4;
}

.adv-pro-element.selected .adv-pro-content {
    border: 1px dashed #2ecc71;
}

.adv-pro-toolbar {
    padding: 25px 30px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.adv-pro-toolbar-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.adv-pro-toolbar-section label {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
}

.adv-pro-toolbtn {
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.adv-pro-toolbtn:hover {
    border-color: #3498db;
    background: #3498db;
    color: white;
}

.adv-pro-generate-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.adv-pro-generate-btn:hover {
    background: #5a6fd8;
}

.adv-pro-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.adv-pro-submit-section {
    text-align: center;
    padding: 50px 30px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.adv-pro-submit-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.adv-pro-submit-btn:hover {
    background: #27ae60;
}

.adv-pro-submit-note {
    margin-top: 15px;
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

.adv-pro-success-message {
    background: #d4edda;
    color: #155724;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    border: 2px solid #c3e6cb;
}

.adv-pro-success-message h3 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
}

.adv-pro-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid #f5c6cb;
}

/* استایل‌های مدیریت */
.adv-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.adv-status-pending {
    background: #fff3cd;
    color: #856404;
}

.adv-status-approved {
    background: #d1ecf1;
    color: #0c5460;
}

.adv-status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.adv-action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* رسپانسیو */
@media (max-width: 1200px) {
    .adv-pro-layout {
        grid-template-columns: 1fr;
    }
    
    .adv-pro-sidebar {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .adv-pro-canvas {
        width: 100%;
        height: 500px;
    }
    
    .adv-pro-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .adv-pro-toolbar-section {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .adv-pro-public-container {
        padding: 10px;
    }
    
    .adv-pro-public-header {
        padding: 30px 15px;
    }
    
    .adv-pro-public-header h1 {
        font-size: 2.2em;
    }
    
    .adv-pro-canvas {
        height: 400px;
    }
    
    .adv-pro-backgrounds {
        grid-template-columns: 1fr;
    }
    
    .adv-pro-toolbar-section {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .adv-pro-submit-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
}