/* Directory Admin - Frontend Styles */

/* Suggest Change Button */
#da-suggest-change-btn {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: background 0.3s ease;
}

#da-suggest-change-btn:hover {
    background: #005a87;
    color: #fff;
}

/* Modal Styles */
.da-modal {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: da-fadeIn 0.3s;
}

@keyframes da-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.da-modal-content {
    background-color: #fefefe;
    margin: 3% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: da-slideIn 0.3s;
}

@keyframes da-slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.da-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    line-height: 1;
}

.da-close:hover,
.da-close:focus {
    color: #000;
    text-decoration: none;
}

/* Form Styles */
#da-suggestion-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #23282d;
}

#da-suggestion-form h3 {
    margin: 30px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e4e7;
    color: #23282d;
}

.da-form-group {
    margin-bottom: 20px;
}

.da-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #23282d;
}

.da-form-group input[type="text"],
.da-form-group input[type="email"],
.da-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.da-form-group input[type="text"]:focus,
.da-form-group input[type="email"]:focus,
.da-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.da-form-group input[type="file"] {
    width: 100%;
    padding: 8px 0;
}

.da-form-group .required {
    color: #d63638;
}

/* Current Value Display */
.da-current-value {
    margin: 8px 0;
    padding: 10px;
    background: #f0f0f1;
    border-radius: 3px;
    font-size: 14px;
    color: #50575e;
}

.da-current-value strong {
    color: #23282d;
}

.da-current-value img {
    margin-top: 10px;
    max-width: 200px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Form Actions */
.da-form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e4e7;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.da-submit-btn,
.da-cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.da-submit-btn {
    background: #0073aa;
    color: #fff;
}

.da-submit-btn:hover {
    background: #005a87;
}

.da-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.da-cancel-btn {
    background: #f0f0f1;
    color: #50575e;
}

.da-cancel-btn:hover {
    background: #e0e0e0;
    color: #23282d;
}

/* Messages */
.da-message {
    padding: 12px 20px;
    margin: 20px 0;
    border-radius: 3px;
    font-size: 14px;
    animation: da-slideIn 0.3s;
}

.da-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.da-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.da-loading {
    opacity: 0.6;
    pointer-events: none;
}

.da-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: da-spin 1s linear infinite;
}

@keyframes da-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .da-modal-content {
        width: 95%;
        margin: 10px auto;
        padding: 20px;
    }
    
    .da-form-actions {
        flex-direction: column;
    }
    
    .da-submit-btn,
    .da-cancel-btn {
        width: 100%;
    }
}