/**
 * myFeedback Dark Mode Theme
 * Modern dark theme with purple accents
 * 
 * @package MyFeedback
 * @since 0.0.2
 */

/* Container */
.myfeedback-wrapper {
    max-width: 600px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.myfeedback-theme-dark-mode .myfeedback-form {
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
    padding: 15px;
    margin-bottom: 0px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Honeypot - Hidden */
.myfeedback-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Fields */
.myfeedback-field {
    margin-bottom: 10px;
}

.myfeedback-field label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.myfeedback-required {
    color: #ff6b9d;
    margin-left: 4px;
}

.myfeedback-field input[type="text"],
.myfeedback-field input[type="email"],
.myfeedback-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.myfeedback-field input[type="text"]:focus,
.myfeedback-field input[type="email"]:focus,
.myfeedback-field textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.myfeedback-field input[type="text"]::placeholder,
.myfeedback-field input[type="email"]::placeholder,
.myfeedback-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.myfeedback-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox */
.myfeedback-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    cursor: pointer;
}

/* Submit Button */
.myfeedback-submit-wrapper {
    margin-top: 10px;
}

.myfeedback-submit {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.myfeedback-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.myfeedback-submit:active:not(:disabled) {
    transform: translateY(0);
}

.myfeedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Response Messages */
.myfeedback-response {
    margin-top: 25px;
    padding: 20px;
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.myfeedback-success {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4CAF50;
    color: #81C784;
    text-align: center;
}

.myfeedback-success-icon {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 10px;
}

.myfeedback-success p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.myfeedback-error {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid #f44336;
    color: #EF9A9A;
}

.myfeedback-error-icon {
    font-size: 48px;
    color: #f44336;
    margin-bottom: 10px;
    text-align: center;
}

.myfeedback-error-list {
    margin: 10px 0;
    padding-left: 20px;
    list-style: none;
}

.myfeedback-error-list li {
    margin: 5px 0;
    padding-left: 20px;
    position: relative;
}

.myfeedback-error-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #f44336;
    font-weight: bold;
}

/* Custom Fields */
.myfeedback-custom-field {
    /* Inherits from .myfeedback-field */
}

/* Responsive */
@media (max-width: 600px) {
    .myfeedback-theme-dark-mode .myfeedback-form {
        padding: 25px;
        margin-bottom: 0px;
    }
    
    .myfeedback-field label {
        font-size: 13px;
    }
    
    .myfeedback-submit {
        font-size: 14px;
        padding: 14px 24px;
    }
}

/* Accessibility */
.myfeedback-field input:focus,
.myfeedback-field textarea:focus,
.myfeedback-submit:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Loading State */
.myfeedback-submit:disabled:after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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