/**
 * Frontend CSS für Rabatt-Codes Plugin
 */

/* Login Form Wrapper */
.rabatt-login-wrapper {
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
}

.rabatt-login-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Form Header */
.rabatt-form-header h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
}

.rabatt-form-header p {
    color: #666;
    margin-bottom: 20px;
}

/* Alerts */
.rabatt-alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.rabatt-alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.rabatt-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Form Groups */
.rabatt-form-group {
    margin-bottom: 20px;
}

.rabatt-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* Code Input */
.rabatt-code-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 18px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.rabatt-code-input:focus {
    border-color: #007cba;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.1);
}

.rabatt-code-input:invalid {
    border-color: #dc3545;
}

.rabatt-code-format-hint {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Submit Button */
.rabatt-submit-button {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #007cba;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.rabatt-submit-button:hover {
    background: #005a87;
}

.rabatt-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.button-loading {
    display: inline-block;
}

/* Test Codes (Dev Mode) */
.rabatt-test-codes {
    margin-top: 30px;
    padding: 20px;
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
}

.test-codes-header {
    margin-bottom: 10px;
    color: #004085;
}

.test-codes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.test-code-button {
    padding: 8px 12px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: #fff;
    border: 1px solid #007cba;
    border-radius: 3px;
    color: #007cba;
    cursor: pointer;
    transition: all 0.2s ease;
}

.test-code-button:hover {
    background: #007cba;
    color: #fff;
}

.test-codes-info {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Info Box */
.rabatt-info-box {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    border-radius: 4px;
}

.rabatt-info-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.rabatt-info-box ul {
    margin: 0;
    padding-left: 20px;
}

.rabatt-info-box li {
    margin-bottom: 5px;
    color: #666;
}

/* Already Logged In */
.rabatt-already-logged-in {
    max-width: 500px;
    margin: 30px auto;
}

.rabatt-status-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.status-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 20px;
}

.rabatt-status-card h3 {
    margin-bottom: 20px;
    color: #333;
}

.status-details {
    margin-bottom: 20px;
}

.status-details p {
    margin-bottom: 10px;
}

.rabatt-code-display {
    display: inline-block;
    padding: 5px 10px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    background: #f0f0f0;
    border-radius: 3px;
    letter-spacing: 1px;
}

.remaining-time {
    color: #dc3545;
    font-weight: bold;
}

.status-actions {
    margin-bottom: 20px;
}

.status-actions .button {
    display: inline-block;
    padding: 12px 24px;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.status-actions .button:hover {
    background: #005a87;
}

.status-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.link-button {
    background: none;
    border: none;
    color: #007cba;
    cursor: pointer;
    text-decoration: underline;
}

.link-button:hover {
    color: #005a87;
}

/* Status Widget */
.rabatt-status-widget {
    padding: 10px;
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    margin-bottom: 20px;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-label {
    font-weight: 600;
    color: #333;
}

.status-code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #007cba;
}

.status-timer {
    color: #dc3545;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
    .rabatt-login-wrapper {
        padding: 10px;
    }

    .rabatt-login-form {
        padding: 20px;
    }

    .rabatt-code-input {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .test-codes-list {
        flex-direction: column;
    }

    .test-code-button {
        width: 100%;
    }
}