/* Lead Manager Frontend Styles */

/* Form Container */
.mcm-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mcm-form-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 600;
}

/* Form Layout */
.mcm-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.mcm-form-row-half .mcm-form-group {
    flex: 1;
}

.mcm-form-row-third .mcm-form-group {
    flex: 1;
}

.mcm-form-group {
    margin-bottom: 20px;
}

.mcm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.mcm-form-group input,
.mcm-form-group select,
.mcm-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

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

.mcm-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Select Styling */
.mcm-form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Priority and Status Styling */
select.priority-high {
    border-color: #e74c3c;
}

select.priority-medium {
    border-color: #f39c12;
}

select.priority-low {
    border-color: #27ae60;
}

select.status-hot {
    border-color: #e74c3c;
}

select.status-warm {
    border-color: #f39c12;
}

select.status-cold {
    border-color: #95a5a6;
}

/* Button Styling */
.mcm-form-actions {
    text-align: center;
    margin-top: 30px;
}

.mcm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 150px;
}

.mcm-btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.mcm-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5582);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.mcm-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Messages */
.mcm-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.mcm-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mcm-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Stats Widget */
.mcm-stats-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.mcm-stats-widget .mcm-stat-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    min-width: 120px;
    flex: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mcm-stats-widget .mcm-stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
}

.mcm-stats-widget .mcm-stat-label {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mcm-form-container {
        margin: 20px;
        padding: 20px;
    }
    
    .mcm-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .mcm-form-title {
        font-size: 1.5em;
    }
    
    .mcm-stats-widget {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .mcm-form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .mcm-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Loading Animation */
.mcm-btn-loading {
    display: inline-block;
}

.mcm-btn-loading:after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}