* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #E8F8FF 0%, #F0F8FF 100%);
    border-bottom: 4px solid #5DADE2;
    border-radius: 10px;
    gap: 30px;
    box-shadow: 0 2px 10px rgba(93, 173, 226, 0.15);
}

.header-left {
    flex: 1;
}

.header-right {
    flex: 0 0 auto;
    width: 160px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 3.5em;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-text h1 {
    margin: 0;
    color: #2C5AA0;
    font-size: 2.5em;
    text-align: left;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text p {
    margin: 5px 0 0 0;
    color: #5DADE2;
    font-size: 1.1em;
    font-weight: 600;
    text-align: left;
}

.healthcare-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(93, 173, 226, 0.2));
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .header-left {
        flex: 1;
        width: 100%;
    }

    .logo {
        justify-content: center;
    }

    .logo-text h1 {
        text-align: center;
    }

    .logo-text p {
        text-align: center;
    }

    .header-right {
        width: 150px;
        height: 100px;
    }

    .container {
        padding: 20px;
    }
}

h2 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.hidden {
    display: none;
}

.form-section {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.button-group {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-create {
    background-color: #28a745;
    color: white;
}

.btn-create:hover {
    background-color: #218838;
}

.btn-update {
    background-color: #007bff;
    color: white;
}

.btn-update:hover {
    background-color: #0056b3;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background-color: #545b62;
}

.btn-edit {
    background-color: #ffc107;
    color: #333;
    padding: 5px 15px;
    font-size: 12px;
}

.btn-edit:hover {
    background-color: #e0a800;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    padding: 5px 15px;
    font-size: 12px;
}

.btn-delete:hover {
    background-color: #c82333;
}

.table-section {
    margin-top: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

thead {
    background-color: #667eea;
    color: white;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    font-weight: bold;
}

tbody tr:hover {
    background-color: #f5f5f5;
}

.loading {
    text-align: center;
    color: #999;
    font-style: italic;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

/* Health Services Section */
.health-services-section {
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    border: 2px solid #2196f3;
}

.service-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: #1976d2;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.service-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-health {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(33, 150, 243, 0.3);
}

.btn-health:hover {
    background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.5);
    transform: translateY(-2px);
}

/* Health Analysis Form */
.btn-analyze {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
    margin-top: 10px;
}

.btn-analyze:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.5);
    transform: translateY(-2px);
}

.analysis-results {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #4caf50;
}

.analysis-results h4 {
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.results-summary {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #4caf50;
}

.results-summary p {
    margin: 0;
    color: #333;
}

.entities-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.entity-category {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.entity-category h5 {
    color: #1976d2;
    margin: 0 0 10px 0;
    font-size: 1.1em;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 8px;
}

.entity-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.entity-category li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.entity-category li:last-child {
    border-bottom: none;
}

.entity-text {
    font-weight: bold;
    color: #333;
}

.entity-subcategory {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.entity-confidence {
    margin-left: auto;
    background: #e3f2fd;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    color: #1976d2;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 30px;
    color: #666;
}

.loading-analysis {
    text-align: center;
    padding: 30px;
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4caf50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.loading-analysis p {
    color: #666;
    font-weight: 600;
}

/* Audio Transcription Styles */
input[type="file"] {
    padding: 10px;
    border: 2px dashed #1976d2;
    border-radius: 5px;
    background: #f8f9fa;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

input[type="file"]:hover {
    border-color: #0d47a1;
    background: #e3f2fd;
}

.file-info {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}

.audio-preview {
    margin: 15px 0;
    padding: 15px;
    background: #f0f4f8;
    border-radius: 5px;
}

.audio-preview audio {
    width: 100%;
    margin-top: 10px;
}

.btn-transcribe {
    background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(25, 118, 210, 0.3);
    margin-top: 10px;
}

.btn-transcribe:hover {
    background: linear-gradient(135deg, #0d47a1 0%, #01579b 100%);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.5);
    transform: translateY(-2px);
}

.btn-transcribe:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.transcription-results {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #1976d2;
}

.transcription-results h4 {
    color: #0d47a1;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.transcription-box {
    background: white;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #1976d2;
    margin-bottom: 15px;
}

.transcription-text-content {
    color: #333;
    line-height: 1.8;
    font-size: 1.05em;
    margin: 0;
    white-space: pre-wrap;
}

.transcription-meta {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.transcription-meta span {
    color: #1976d2;
    font-weight: 600;
    font-size: 0.9em;
}

.transcription-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.btn-copy {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

.btn-copy:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
    transform: translateY(-2px);
}

.btn-analyze-transcription {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.btn-analyze-transcription:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5);
    transform: translateY(-2px);
}

.note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    color: #856404;
    font-size: 0.9em;
}


/* ===== OCR STYLES ===== */

.image-preview {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.image-preview label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-weight: 600;
}

.btn-ocr {
    background: linear-gradient(135deg, #9c27b0 0%, #6a1b9a 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(156, 39, 176, 0.3);
    font-size: 16px;
}

.btn-ocr:hover {
    background: linear-gradient(135deg, #6a1b9a 0%, #4a148c 100%);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.5);
    transform: translateY(-2px);
}

.btn-ocr:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ocr-results {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #9c27b0;
}

.ocr-results h4 {
    color: #6a1b9a;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.status-badge {
    margin-bottom: 15px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

.badge-demo {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.badge-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.ocr-text-box {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.ocr-text-content {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

.ocr-stats {
    margin: 15px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

.stat-value {
    color: #9c27b0;
    font-weight: bold;
    margin-left: 5px;
}

.note-info {
    background: #e8f5e9;
}

/* ========================================
   CHAT WIDGET STYLES
   ======================================== */

/* Botón flotante */
.chat-widget-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 0 0 rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

.chat-widget-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.chat-widget-button.active {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.chat-widget-text {
    display: inline;
    color: white;
    font-weight: 600;
    font-size: 15px;
}

#chatWidgetIcon {
    font-size: 20px;
}

/* Panel del chat */
.chat-widget-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: bottom right;
}

.chat-widget-panel.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.chat-widget-panel.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Header del chat */
.chat-widget-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-widget-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chat-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* Body del chat */
.chat-widget-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

/* Mensajes */
.chat-message {
    margin-bottom: 16px;
    animation: slideIn 0.3s ease;
}

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

.chat-message.user {
    text-align: right;
}

.chat-bubble {
    display: inline-block;
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message.user .chat-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.agent .chat-bubble {
    background: white;
    color: #2d3748;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chat-timestamp {
    font-size: 11px;
    color: #a0aec0;
    margin-top: 4px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 18px;
    width: fit-content;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e0;
    margin-right: 4px;
    animation: typing 1.4s infinite;
}

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

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
    margin-right: 0;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Input area */
.chat-input-container {
    padding: 16px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
}

.chat-input-container textarea {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    transition: all 0.2s;
    outline: none;
}

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

.chat-send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.chat-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chat-send-btn:active {
    transform: translateY(0);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Welcome message */
.chat-welcome {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.chat-welcome-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.chat-welcome h4 {
    margin: 0 0 8px 0;
    color: #2d3748;
    font-size: 18px;
}

.chat-welcome p {
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 500px) {
    .chat-widget-panel {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        bottom: 90px;
    }

    .chat-widget-button {
        bottom: 15px;
        right: 15px;
    }
    border: 1px solid #4caf50;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    color: #2e7d32;
    font-size: 0.9em;
}

.ocr-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.btn-analyze-ocr {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.btn-analyze-ocr:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5);
    transform: translateY(-2px);
}

.file-info {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}


/* ===== AGENT HELP DESK STYLES ===== */

.agent-results {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.agent-results h4 {
    margin-top: 0;
    color: #2C5AA0;
    border-bottom: 2px solid #5DADE2;
    padding-bottom: 10px;
}

.agent-response-text {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #28A745;
    line-height: 1.6;
    color: #333;
    margin: 10px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.agent-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.agent-error {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    padding: 12px;
    color: #c33;
    margin-top: 10px;
}

.loading-agent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    color: #666;
}

.loading-agent .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #5DADE2;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

.btn-agent {
    background: linear-gradient(135deg, #2C5AA0 0%, #1E3A6F 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-agent:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.btn-agent:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .agent-actions {
        flex-direction: column;
    }
    
    .agent-actions .btn {
        width: 100%;
    }
}
