body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    color: #1c1e21;
}

.dashboard-container {
    max-width: 800px; /* Ajuste conforme necessário */
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 30px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Logo como elemento decorativo na home, sem link */
.header-left img {
    cursor: default;
}

header h1 {
    font-size: 28px; /* Aumentado um pouco */
    font-weight: 600;
    margin: 0;
}

.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e4e6eb;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 18px;
    color: #050505;
}

.prepare-scan-section {
    margin-bottom: 40px;
}

.blue-button {
    width: 100%;
    padding: 15px;
    background-color: #1877f2; /* Azul do Facebook/imagem */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px; /* Aumentado */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.blue-button:hover {
    background-color: #166fe5;
}

.active-scans-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.scan-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: box-shadow 0.2s ease-in-out;
}

.scan-item:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.scan-info h3 {
    font-size: 18px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 5px;
    color: #050505;
}

.scan-info p {
    font-size: 14px;
    color: #606770;
    margin: 0;
}

.scan-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.scan-status span {
    padding: 5px 10px;
    border-radius: 15px; /* Mais arredondado */
    background-color: #e7f3ff; /* Azul claro para 'In Progress' */
    color: #004085; /* Azul escuro para texto */
}

.scan-status.completed span {
    background-color: #d4edda; /* Verde claro para 'Completed' */
    color: #155724; /* Verde escuro para texto */
}

.scan-status i {
    color: #606770;
    font-size: 16px;
}

/* Estilos para o header da imagem original (app.mimirtcg.com) */
/* Se você quiser replicar a barra superior com URL, precisaria de mais HTML e CSS */
/* Por ora, o foco é no conteúdo da página */

/* =========================================
   BOTÕES DE AÇÃO (EDITAR/EXCLUIR)
   ========================================= */

.scan-item {
    position: relative;
    /* Grid layout: info | botões | status */
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
}

/* Título clicável */
.scan-info h3,
.scan-title-clickable {
    cursor: pointer;
    display: inline-block;
    padding: 4px 8px;
    margin-left: -8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.scan-info h3:hover,
.scan-title-clickable:hover {
    background: #f0f2f5;
}

/* Detalhes não clicáveis */
.scan-info p {
    cursor: default;
}

/* Botões de ação - INVISÍVEIS por padrão */
.scan-actions,
.action-buttons {
    display: flex;
    gap: 8px;
    opacity: 0; /* Escondidos por padrão */
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Aparecem APENAS no hover do card */
.scan-item:hover .scan-actions,
.scan-item:hover .action-buttons {
    opacity: 1;
}

.edit-scan-btn,
.delete-scan-btn,
.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #e4e6eb;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #606770;
}

.edit-scan-btn:hover,
.btn-edit:hover {
    background: #f0f2f5;
    border-color: #1877f2;
    color: #1877f2;
    transform: scale(1.1);
}

.delete-scan-btn:hover,
.btn-delete:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
    transform: scale(1.1);
}

/* Status também clicável */
.scan-status {
    cursor: pointer;
    padding: 4px 8px;
    margin-right: -8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.scan-status:hover {
    background: #f0f2f5;
}

/* =========================================
   MODAIS
   ========================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.2s ease-out;
}

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

.modal-header {
    padding: 24px 24px 16px;
    text-align: center;
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 20px;
}

.modal-icon-danger {
    background: #fee2e2;
    color: #dc2626;
}

.modal-icon-primary {
    background: #dbeafe;
    color: #1877f2;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #1c1e21;
}

.modal-body {
    padding: 0 24px 24px;
}

.modal-text {
    font-size: 14px;
    color: #606770;
    margin: 0 0 16px;
    text-align: center;
}

.scan-details-box {
    background: #f0f2f5;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.scan-name {
    font-size: 16px;
    font-weight: 600;
    color: #1c1e21;
    margin: 0 0 4px;
}

.scan-info-text {
    font-size: 14px;
    color: #606770;
    margin: 0;
}

.warning-box {
    background: #fef3c7;
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.warning-box i {
    color: #d97706;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-text {
    font-size: 14px;
    color: #92400e;
    margin: 0 0 8px;
}

.warning-note {
    font-size: 12px;
    color: #78350f;
    margin: 0;
}

.current-scan-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.current-scan-box .label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group label i {
    margin-right: 6px;
    color: #1877f2;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.help-text {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0 0;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #e4e6eb;
}

/* Botões */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.btn-secondary {
    background: #e4e6eb;
    color: #1c1e21;
}

.btn-secondary:hover:not(:disabled) {
    background: #d8dadf;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.btn-primary {
    background: #1877f2;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #166fe5;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.3);
}

/* =========================================
   TOAST NOTIFICATIONS
   ========================================= */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 250px;
    max-width: 400px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.bg-green-600 {
    background-color: #16a34a;
}

.bg-red-600 {
    background-color: #dc2626;
}

.bg-yellow-600 {
    background-color: #ca8a04;
}

.bg-blue-600 {
    background-color: #2563eb;
} 