/* Donation Manager Pro - Frontend Styles */

.dmp-donation-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.dmp-form-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px;
    color: #333;
    text-align: center;
}

.dmp-form-description {
    text-align: center;
    color: #666;
    margin: 0 0 30px;
}

.dmp-donation-form {
    width: 100%;
}

.dmp-form-group {
    margin-bottom: 20px;
}

.dmp-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.dmp-form-group label .required {
    color: #dc3545;
}

.dmp-amount-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.dmp-amount-btn {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.dmp-amount-btn:hover {
    border-color: #28a745;
    background: #f8fff9;
}

.dmp-amount-btn.active {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.dmp-amount-btn .amount-label {
    display: block;
    font-size: 12px;
    font-weight: normal;
    margin-top: 5px;
    opacity: 0.8;
}

.dmp-amount-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.dmp-amount-input:focus {
    outline: none;
    border-color: #28a745;
}

.dmp-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.dmp-input:focus {
    outline: none;
    border-color: #28a745;
}

.dmp-submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dmp-submit-btn:hover {
    background: #218838;
}

.dmp-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.dmp-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

.dmp-form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dmp-form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dmp-form-message.info {
    display: block;
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading spinner */
.dmp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: dmp-spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes dmp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .dmp-donation-card {
        padding: 20px;
    }
    
    .dmp-amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dmp-form-title {
        font-size: 20px;
    }
    
    .dmp-submit-btn {
        font-size: 16px;
    }
}

/* RTL Support */
[dir="rtl"] .dmp-donation-card {
    text-align: right;
}

/* Payment status pages */
.dmp-payment-status {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.dmp-payment-status.success {
    border-top: 5px solid #28a745;
}

.dmp-payment-status.failed {
    border-top: 5px solid #dc3545;
}

.dmp-payment-status-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.dmp-payment-status.success .dmp-payment-status-icon {
    color: #28a745;
}

.dmp-payment-status.failed .dmp-payment-status-icon {
    color: #dc3545;
}

.dmp-payment-status h2 {
    margin: 0 0 15px;
    font-size: 28px;
}

.dmp-payment-status p {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px;
}

.dmp-transaction-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: left;
}

.dmp-transaction-details dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
}

.dmp-transaction-details dt {
    font-weight: bold;
    color: #333;
}

.dmp-transaction-details dd {
    margin: 0;
    color: #666;
}
