/**
 * SCPM Common Styles
 * 
 * Common styles for notifications, alerts, and UI components
 */

/* =================================================================
   Alert Messages & Notifications
   ================================================================= */

.scpm-alert,
.sensei-message.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.scpm-alert-warning,
.sensei-message.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.scpm-alert-warning p,
.sensei-message.alert-warning p {
    margin: 0;
    color: #856404;
}

.scpm-alert-warning strong {
    font-weight: 600;
}

/* =================================================================
   Access Denied / Restricted Access
   ================================================================= */

.scpm-access-denied,
.scpm-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    text-align: center;
}

.scpm-access-denied h3,
.scpm-error h3 {
    color: #721c24;
    margin-top: 0;
}

.scpm-access-denied p,
.scpm-error p {
    color: #721c24;
    margin: 0;
}

.scpm-access-denied .button,
.scpm-error .button {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}

.scpm-access-denied .button:hover,
.scpm-error .button:hover {
    background: #0056b3;
    color: white;
}

/* =================================================================
   Form Completed Notice
   ================================================================= */

.scpm-form-completed-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #fff;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.scpm-form-completed-notice .scpm-icon-large {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.scpm-form-completed-notice h2 {
    color: #fff;
    margin: 0 0 15px;
    font-size: 32px;
    font-weight: 700;
}

.scpm-form-completed-notice p {
    font-size: 18px;
    margin: 0 0 10px;
    opacity: 0.95;
}

.scpm-form-completed-notice .scpm-notice-box {
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.scpm-form-completed-notice .scpm-notice-box p {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
}

.scpm-form-completed-notice .scpm-buttons {
    margin-top: 25px;
}

.scpm-form-completed-notice .scpm-btn-primary {
    display: inline-block;
    margin-right: 10px;
    padding: 14px 32px;
    background: #fff;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.scpm-form-completed-notice .scpm-btn-primary:hover {
    background: #f0f0f0;
    color: #667eea;
}

.scpm-form-completed-notice .scpm-btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: rgba(255,255,255,0.3);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.scpm-form-completed-notice .scpm-btn-secondary:hover {
    background: rgba(255,255,255,0.4);
    color: #fff;
}

/* =================================================================
   Login Required
   ================================================================= */

.ci-login-required {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 30px;
    border-radius: 16px;
    text-align: center;
    color: white;
    margin: 30px 0;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.ci-login-required .ci-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.ci-login-required h2 {
    margin: 0 0 15px;
    color: white;
    font-size: 28px;
}

.ci-login-required p {
    margin: 0 0 25px;
    opacity: 0.9;
    font-size: 16px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.ci-login-required .ci-login-btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ci-login-required .ci-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #667eea;
}

/* =================================================================
   Comments Styles (AJAX Handler)
   ================================================================= */

.ci-comment {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ci-comment .ci-comment-avatar {
    flex-shrink: 0;
}

.ci-comment .ci-comment-content {
    flex-grow: 1;
}

.ci-comment .ci-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.ci-comment .ci-comment-author {
    color: #212529;
    font-weight: 600;
}

.ci-comment .ci-comment-date {
    color: #6c757d;
    font-size: 13px;
}

.ci-comment .ci-comment-text {
    color: #495057;
    line-height: 1.6;
}

.ci-comment .ci-comment-actions {
    margin-top: 10px;
}

.ci-comment .ci-delete-comment {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.ci-comment .ci-delete-comment:hover {
    color: #c0392b;
}

/* =================================================================
   Uploaded Images & Files
   ================================================================= */

.ci-uploaded-images {
    margin-top: 10px;
}

.ci-uploaded-image {
    margin-bottom: 15px;
}

.ci-uploaded-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ci-uploaded-image .ci-image-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #667eea;
}

.ci-uploaded-image .ci-image-link:hover {
    color: #5a6fd6;
}

.ci-uploaded-file {
    margin-bottom: 10px;
}

.ci-uploaded-file a {
    color: #667eea;
    font-weight: 500;
}

.ci-uploaded-file a:hover {
    color: #5a6fd6;
}

/* =================================================================
   Final Report Section (UM Profile)
   ================================================================= */

.scpm-formulare-wrapper .scpm-final-report .scpm-icon-large {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.scpm-formulare-wrapper .scpm-final-report h3 {
    color: white;
}

/* =================================================================
   Responsive Overrides
   ================================================================= */

@media (max-width: 768px) {
    .scpm-form-completed-notice {
        padding: 30px 20px;
        margin: 20px auto;
    }
    
    .scpm-form-completed-notice .scpm-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .scpm-form-completed-notice .scpm-btn-primary,
    .scpm-form-completed-notice .scpm-btn-secondary {
        margin-right: 0;
    }
    
    .ci-login-required {
        padding: 40px 20px;
    }
    
    .ci-comment {
        flex-direction: column;
        gap: 10px;
    }
}
