/* Campaign Form Styles */
.givefront-form-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.givefront-form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3338;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
}

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

.givefront-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3338;
}

.givefront-form-group input[type="text"],
.givefront-form-group input[type="number"],
.givefront-form-group input[type="date"],
.givefront-form-group select,
.givefront-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.givefront-form-group input:focus,
.givefront-form-group select:focus,
.givefront-form-group textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.givefront-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.givefront-form-col {
    flex: 1;
}

.givefront-field-description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 0;
    font-style: italic;
}

/* Image Upload Styles */
.givefront-image-upload {
    position: relative;
    margin-bottom: 10px;
}

.givefront-file-input {
    display: none;
}

.givefront-file-label {
    display: inline-block;
    padding: 12px 20px;
    background: #f6f7f7;
    border: 2px dashed #c3c4c7;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.givefront-file-label:hover {
    background: #f0f0f1;
    border-color: #2271b1;
}

.givefront-image-preview {
    margin-top: 15px;
}

.givefront-image-preview img {
    max-width: 300px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Checkbox Styles */
.givefront-checkbox-group {
    margin-bottom: 15px;
}

.givefront-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.givefront-checkbox-label input[type="checkbox"] {
    display: none;
}

.givefront-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #c3c4c7;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.givefront-checkbox-label input[type="checkbox"]:checked + .givefront-checkbox-custom {
    background: #2271b1;
    border-color: #2271b1;
}

.givefront-checkbox-label input[type="checkbox"]:checked + .givefront-checkbox-custom::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* User Dashboard Styles */
.givefront-user-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.givefront-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e1e1e1;
}

.givefront-dashboard-header h2 {
    margin: 0;
    color: #2c3338;
}

.givefront-campaigns-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.givefront-campaigns-table th,
.givefront-campaigns-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

.givefront-campaigns-table th {
    background: #f6f7f7;
    font-weight: 600;
    color: #2c3338;
}

.givefront-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.givefront-status-publish {
    background: #d4edda;
    color: #155724;
}

.givefront-status-draft {
    background: #fff3cd;
    color: #856404;
}

.givefront-status-pending {
    background: #cce7ff;
    color: #004085;
}

.givefront-draft-badge {
    background: #ffb900;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 8px;
}

.givefront-actions {
    display: flex;
    gap: 5px;
}

.givefront-button-small {
    padding: 6px 12px;
    font-size: 12px;
    text-decoration: none;
}

.givefront-no-campaigns {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.givefront-no-campaigns p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.givefront-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.givefront-stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
    border-left: 4px solid #2271b1;
}

.givefront-stat-card h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.givefront-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #2271b1;
}

/* Form Messages */
.givefront-form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-weight: 500;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .givefront-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .givefront-dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .givefront-campaigns-table {
        display: block;
        overflow-x: auto;
    }
    
    .givefront-actions {
        flex-direction: column;
    }
    
    .givefront-error-field {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 1px #dc3232 !important;
}

    .givefront-field-error {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}
}