/* Amicabl Frontend Styles */
.am-wrapper input[type="text"],
.am-wrapper input[type="email"],
.am-wrapper input[type="password"],
.am-wrapper textarea,
.am-wrapper select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
}

.am-wrapper button,
.am-wrapper .button {
    padding: 10px 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.am-wrapper button:hover,
.am-wrapper .button:hover {
    background: #357ae8;
}

.am-wrapper a {
    color: #4a90e2;
    text-decoration: none;
}

.am-wrapper a:hover {
    text-decoration: underline;
}

/* Status badges */
.am-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.am-status-waiting {
    background: #f8d7da;
    color: #721c24;
}

.am-status-active {
    background: #d1ecf1;
    color: #0c5460;
}

.am-status-reviewing {
    background: #fff3cd;
    color: #856404;
}

.am-status-resolved {
    background: #d4edda;
    color: #155724;
}

/* Chat messages */
.am-message {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid;
}

.am-message-ai {
    background: #e3f2fd;
    border-left-color: #1976d2;
}

.am-message-me {
    background: #d4edda;
    border-left-color: #28a745;
}

.am-message-them {
    background: #f5f5f5;
    border-left-color: #666;
}

/* Dashboard grid */
.am-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* Form layouts */
.am-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .am-form-grid {
        grid-template-columns: 1fr;
    }
    
    .am-cases-grid {
        grid-template-columns: 1fr;
    }
}
/* Fix chat width in workspace */
.am-wrapper #transcript {
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Clean up AI responses */
.am-message-ai div {
    white-space: pre-line;
    line-height: 1.6;
}

.am-message-ai div br {
    display: block;
    content: "";
    margin-bottom: 10px;
}