.ra-chat-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    background: #fff;
}

.ra-chat-messages {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    padding: 10px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.ra-chat-input textarea {
    width: 100%;
    min-height: 100px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ra-button-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.ra-button-group .button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    height: auto;
    min-height: 30px;
}

.ra-button-group .button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Spezifische Button Styles */
#raSendMessage .dashicons {
    margin-left: -3px;
    margin-right: 3px;
}

#raHelpMe.button-secondary .dashicons {
    color: #50575e;
}

#raNextStep .dashicons {
    margin-left: 3px;
    margin-right: -3px;
}

.message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
}

.user-message {
    background-color: #e0f7fa;
    text-align: right;
}

.assistant-message {
    background-color: #f1f8e9;
    text-align: left;
}

.error-message {
    color: #d32f2f;
    font-weight: bold;
}

.ra-step-indicator {
    margin-bottom: 15px;
    font-weight: bold;
    color: #23282d;
}

.ra-preview-document {
    background: white;
    padding: 30px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.ra-preview-header {
    text-align: center;
    margin-bottom: 30px;
}

.ra-preview-meta {
    color: #666;
    font-size: 0.9em;
}

.ra-preview-section {
    margin: 20px 0;
}

.ra-preview-section h2 {
    color: #23282d;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.ra-preview-footer {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-style: italic;
    color: #666;
}

/* Admin-spezifische Styles */
.post-type-forschungszulage #titlediv {
    margin-bottom: 20px;
}

.post-type-forschungszulage #ra_status_box {
    background: #fff;
    padding: 10px;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
    .ra-button-group {
        flex-direction: column;
    }
    
    .ra-button-group button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Loading Animation */
.ra-loading {
    display: inline-block;
    position: relative;
    height: 40px;
    padding-left: 40px;
    margin: 10px 0;
    color: #666;
}

.ra-loading:after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #3498db;
    animation: ra-spin 1s linear infinite;
}

@keyframes ra-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Processing Overlay */
.ra-processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

/* Typing Indicator im Chat */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #90949c;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Deaktivierte Button Styles */
.button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Thickbox Anpassungen */
#TB_window {
    max-width: 90%;
    max-height: 90%;
}

#TB_ajaxContent {
    max-height: calc(100vh - 100px) !important;
    width: auto !important;
    height: auto !important;
}

#ra-preview-content {
    padding: 20px;
    background: white;
}

/* Dokument Vorschau Styles */
.ra-document-preview {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: white;
}

.ra-document-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: left;
    color: #333;
}

.ra-section {
    margin-bottom: 30px;
}

.ra-section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #444;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.ra-section-content {
    margin-bottom: 20px;
    text-align: justify;
    white-space: pre-wrap;
}

.ra-signature-section {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.ra-signature-line {
    margin: 20px 0;
}

.ra-signature-label {
    display: inline-block;
    width: 100px;
    font-weight: bold;
}

.ra-signature-field {
    display: inline-block;
    width: 300px;
    border-bottom: 1px solid #999;
    margin-left: 20px;
}

.ra-hidden-by-default {
    display: none !important;
}

/* List Table Styles */
.ra-list-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: 20px 0;
}

.ra-list-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.ra-list-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
}

.ra-list-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.ra-list-table tr:last-child td {
    border-bottom: none;
}

/* Status Badge Styles */
.ra-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.ra-status-badge.status-draft {
    background-color: #e9ecef;
    color: #495057;
}

.ra-status-badge.status-in_progress {
    background-color: #fff3cd;
    color: #856404;
}

.ra-status-badge.status-review {
    background-color: #cce5ff;
    color: #004085;
}

.ra-status-badge.status-submitted {
    background-color: #d4edda;
    color: #155724;
}

.ra-status-badge.status-approved {
    background-color: #d1e7dd;
    color: #0f5132;
}

.ra-status-badge.status-rejected {
    background-color: #f8d7da;
    color: #842029;
}

/* Action Buttons */
.ra-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ra-actions .button {
    padding: 6px 12px;
    height: auto;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.ra-actions .button-primary {
    background: #0073aa;
    border-color: #0073aa;
}

.ra-actions .button-primary:hover {
    background: #006291;
    border-color: #006291;
}

.ra-actions .ra-delete-button {
    background: #fff;
    border-color: #dc3545;
    color: #dc3545;
}

.ra-actions .ra-delete-button:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.ra-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Responsive Styles */
@media screen and (max-width: 782px) {
    .ra-list-table {
        display: block;
    }
    
    .ra-list-table thead {
        display: none;
    }
    
    .ra-list-table tbody, 
    .ra-list-table tr, 
    .ra-list-table td {
        display: block;
    }
    
    .ra-list-table tr {
        padding: 15px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .ra-list-table tr:last-child {
        border-bottom: none;
    }
    
    .ra-list-table td {
        padding: 5px 0;
        border: none;
    }
    
    .ra-list-table td:before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        width: 120px;
    }
    
    .ra-actions {
        margin-top: 10px;
    }
} 