/**
 * MSC Dashboard CSS
 * File: assets/css/msc-dashboard.css
 * Version: 1.0.0
 * Date: 2025-07-16
 * Description: CSS-Styles für Dashboard-Shortcodes
 */

/* Dashboard Container */
.msc-dashboard-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
}

/* Dashboard Header */
.msc-dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.msc-dashboard-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.msc-dashboard-header h2 {
    color: #2c3e50;
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.msc-dashboard-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

/* Dashboard Content */
.msc-dashboard-content {
    margin-top: 20px;
}

.msc-dashboard-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.msc-input-group {
    margin-bottom: 20px;
}

.msc-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.msc-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #ffffff;
}

.msc-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.msc-input::placeholder {
    color: #95a5a6;
}

/* Dashboard Actions */
.msc-dashboard-actions {
    text-align: center;
    margin-top: 20px;
}

.msc-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.2;
}

.msc-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.msc-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.msc-button-primary:active {
    transform: translateY(0);
}

.msc-button-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}

.msc-button-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.msc-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Dashboard Results */
.msc-dashboard-results {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

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

.msc-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.msc-results-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 20px;
}

.msc-scan-date {
    color: #7f8c8d;
    font-size: 14px;
}

/* Results Summary */
.msc-results-summary {
    margin-bottom: 20px;
}

.msc-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 15px;
}

.msc-result-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.msc-result-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.msc-result-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.msc-result-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Results Actions */
.msc-results-actions {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Dashboard Info */
.msc-dashboard-info {
    background: #e8f4f8;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.msc-dashboard-info p {
    margin: 0;
    color: #0c5460;
}

/* Debug Info */
.msc-debug-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
}

.msc-debug-info h4 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 15px;
}

.msc-debug-info ul {
    margin: 0;
    padding-left: 20px;
}

.msc-debug-info li {
    margin-bottom: 8px;
    color: #6c757d;
}

/* Dashboard Themes */
.msc-dashboard-user {
    border-top: 4px solid #17a2b8;
}

.msc-dashboard-admin {
    border-top: 4px solid #dc3545;
}

.msc-dashboard-debug {
    border-top: 4px solid #6c757d;
}

.msc-dashboard-standard {
    border-top: 4px solid #667eea;
}

/* Login Container */
.msc-login-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
}

.msc-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.msc-login-header h2 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 24px;
}

.msc-login-header p {
    color: #7f8c8d;
    margin: 0;
}

.msc-login-form {
    margin-bottom: 20px;
}

.msc-login-form input[type="text"],
.msc-login-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.msc-login-form input[type="text"]:focus,
.msc-login-form input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.msc-login-form input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.msc-login-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.msc-login-links {
    text-align: center;
    margin-top: 20px;
}

.msc-login-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.msc-login-links a:hover {
    text-decoration: underline;
}

.msc-login-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.msc-login-success a {
    color: #155724;
    font-weight: 600;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.msc-spin {
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .msc-dashboard-container {
        margin: 10px;
        padding: 20px;
    }
    
    .msc-dashboard-header h2 {
        font-size: 24px;
    }
    
    .msc-dashboard-form {
        padding: 20px;
    }
    
    .msc-button {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .msc-results-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .msc-login-container {
        margin: 10px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .msc-dashboard-container {
        margin: 5px;
        padding: 15px;
    }
    
    .msc-dashboard-icon {
        font-size: 36px;
    }
    
    .msc-dashboard-header h2 {
        font-size: 20px;
    }
    
    .msc-dashboard-header p {
        font-size: 14px;
    }
    
    .msc-input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .msc-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .msc-result-item {
        font-size: 14px;
        padding: 10px;
    }
}