/* DevFlow - Estilos Customizados */

:root {
    --indigo-600: #4f46e5;
    --indigo-500: #6366f1;
    --indigo-100: #e0e7ff;
    --indigo-50: #eef2ff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --emerald-100: #d1fae5;
    --emerald-700: #047857;
    --amber-100: #fef3c7;
    --amber-700: #b45309;
    --orange-100: #ffedd5;
    --orange-700: #c2410c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--slate-50);
    color: var(--slate-800);
}

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--indigo-600) 0%, #3b82f6 50%, #06b6d4 100%);
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 28rem;
}

.login-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    background: var(--indigo-600);
    padding: 0.75rem;
    border-radius: 0.75rem;
    display: inline-block;
    margin-bottom: 1rem;
    color: white;
}

.login-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--slate-500);
}

.alert {
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-error {
    background: var(--red-50);
    color: var(--red-700);
    border: 1px solid var(--red-100);
}

.quick-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-quick-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--slate-50);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.btn-quick-login:hover {
    border-color: var(--indigo-500);
    background: var(--indigo-50);
}

.btn-quick-login.btn-dev {
    background: var(--indigo-50);
    border-color: var(--indigo-100);
}

.btn-icon {
    background: var(--indigo-500);
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-user .btn-icon {
    background: var(--slate-400);
}

.btn-content {
    flex: 1;
    margin-left: 1rem;
}

.btn-title {
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 0.25rem;
}

.btn-subtitle {
    font-size: 0.75rem;
    color: var(--slate-500);
}

.btn-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--indigo-500);
}

.btn-toggle-form {
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--indigo-600);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--slate-400);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border: 1px solid var(--slate-300);
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    border-color: var(--indigo-500);
    ring: 2px;
    ring-color: var(--indigo-500);
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--indigo-600);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: var(--indigo-500);
}

.btn-secondary {
    background: white;
    color: var(--slate-600);
    border: 1px solid var(--slate-200);
}

.btn-secondary:hover {
    background: var(--slate-50);
}

.btn-danger {
    background: var(--red-600);
    color: white;
    flex: 1;
}

.btn-danger:hover {
    background: var(--red-700);
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-100);
    text-align: center;
}

.login-footer p {
    font-size: 0.625rem;
    color: var(--slate-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== DASHBOARD ===== */
.dashboard-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: white;
    border-bottom: 1px solid var(--slate-200);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    background: var(--indigo-600);
    padding: 0.375rem;
    border-radius: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--indigo-600), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    gap: 0.5rem;
}

.search-icon {
    color: var(--slate-400);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.875rem;
    width: 12rem;
    color: var(--slate-600);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 1rem;
    border-right: 1px solid var(--slate-200);
}

.user-details {
    text-align: right;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-700);
}

.user-role {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--indigo-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 2px solid var(--indigo-100);
}

.btn-logout {
    padding: 0.5rem;
    color: var(--slate-400);
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-logout:hover {
    color: var(--red-500);
    background: var(--red-50);
}

/* ===== KANBAN BOARD ===== */
.kanban-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
    padding: 1.5rem;
    scroll-behavior: smooth;
}

.kanban-container::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.kanban-container::-webkit-scrollbar-track {
    background: var(--slate-100);
}

.kanban-container::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 4px;
}

.kanban-container::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

.kanban-board {
    display: flex;
    gap: 1.5rem;
    min-width: max-content;
    padding-bottom: 1rem;
}

.kanban-column {
    width: 20rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
}

.column-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.column-title {
    font-weight: 700;
    color: var(--slate-700);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.column-count {
    background: var(--slate-200);
    color: var(--slate-600);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
}

.column-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    background: rgba(241, 245, 249, 0.4);
    min-height: 600px;
}

.column-cards.sortable-ghost {
    opacity: 0.4;
}

.card {
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid var(--slate-200);
    cursor: default;
    transition: all 0.2s;
}

.card:hover {
    border-color: var(--indigo-400);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card.sortable-drag {
    transform: rotate(2deg) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    position: relative;
}

.card-actions {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.btn-view-card {
    padding: 0.375rem;
    color: var(--indigo-600);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--indigo-200);
    border-radius: 0.375rem;
    cursor: pointer;
    opacity: 1 !important;
    transition: all 0.2s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.btn-view-card:hover {
    color: var(--indigo-700);
    background: var(--indigo-50);
    border-color: var(--indigo-300);
    transform: scale(1.05);
}

.card:hover .btn-view-card {
    opacity: 1 !important;
}

.card-priority {
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    border: 1px solid;
}

.priority-low {
    background: var(--emerald-100);
    color: var(--emerald-700);
    border-color: rgba(5, 150, 105, 0.2);
}

.priority-medium {
    background: var(--amber-100);
    color: var(--amber-700);
    border-color: rgba(180, 83, 9, 0.2);
}

.priority-high {
    background: var(--orange-100);
    color: var(--orange-700);
    border-color: rgba(194, 65, 12, 0.2);
}

.priority-critical {
    background: var(--red-100);
    color: var(--red-700);
    border-color: rgba(220, 38, 38, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.btn-delete-card {
    padding: 0.375rem;
    color: var(--slate-400);
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
}

.card:hover .btn-delete-card {
    opacity: 1;
}

.btn-delete-card:hover {
    color: var(--red-500);
    background: var(--red-50);
}

.card-title {
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.card-tag {
    font-size: 0.625rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.tag-bug { background: var(--red-50); color: var(--red-600); }
.tag-feature { background: #dbeafe; color: #2563eb; }
.tag-ux { background: #f3e8ff; color: #9333ea; }
.tag-api { background: #cffafe; color: #0891b2; }
.tag-docs { background: #f3f4f6; color: #4b5563; }

.card-progress {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    background: var(--slate-100);
    height: 0.375rem;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    background: var(--indigo-500);
    height: 100%;
    transition: width 0.5s;
}

.progress-text {
    font-size: 0.625rem;
    color: var(--slate-500);
    margin-top: 0.25rem;
    display: block;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--slate-50);
}

.card-author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.author-avatar {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
}

.author-name {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--slate-400);
}

.card-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--slate-400);
    font-size: 0.625rem;
    font-weight: 500;
}

.btn-add-card {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed var(--slate-200);
    border-radius: 0.75rem;
    background: transparent;
    color: var(--slate-400);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-add-card-top {
    margin-top: 0;
    margin-bottom: 1rem;
}

.btn-add-card:hover {
    color: var(--indigo-600);
    border-color: var(--indigo-300);
    background: var(--indigo-50);
}

/* ===== MODAL ===== */
.modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s;
}

.modal[style*="display: flex"],
.modal[style*="display:flex"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 48rem;
    max-height: 90vh;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem;
    padding: 1rem !important;
    border-top: 1px solid var(--slate-200) !important;
    background: var(--slate-50) !important;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.modal-actions .btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1;
    min-height: 44px;
    font-size: 0.875rem;
    font-weight: 600;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--slate-100);
    background: rgba(248, 250, 252, 0.5);
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.modal-title-section {
    flex: 1;
    margin-right: 1rem;
}

.modal-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--indigo-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.modal-title-input {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-800);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    width: 100%;
    padding: 0.25rem;
    outline: none;
    transition: all 0.2s;
}

.modal-title-input:focus {
    border-bottom-color: var(--indigo-500);
    background: white;
    border-radius: 0.25rem;
}

.btn-close-modal {
    padding: 0.5rem;
    color: var(--slate-400);
    background: transparent;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-modal:hover {
    background: var(--slate-200);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    gap: 2rem;
}

.modal-main {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title {
    font-weight: 700;
    color: var(--slate-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    outline: none;
    resize: none;
    transition: all 0.2s;
    line-height: 1.6;
}

.modal-textarea:focus {
    background: white;
    border-color: var(--indigo-500);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.feats-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.feat-item:hover {
    background: var(--slate-50);
}

.feat-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    border: 2px solid var(--slate-300);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.feat-checkbox.checked {
    background: var(--indigo-500);
    border-color: var(--indigo-500);
    color: white;
}

.feat-title {
    flex: 1;
    font-size: 0.875rem;
}

.feat-title.completed {
    text-decoration: line-through;
    color: var(--slate-400);
}

.feat-add {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feat-add input {
    flex: 1;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    outline: none;
    font-size: 0.875rem;
}

.feat-add input:focus {
    border-color: var(--indigo-500);
    background: white;
}

.btn-add-feat {
    padding: 0.5rem;
    background: var(--indigo-600);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-add-feat:hover {
    background: var(--indigo-700);
}

.modal-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: var(--slate-50);
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.priority-buttons, .tag-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.priority-btn, .tag-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid var(--slate-200);
    background: white;
    color: var(--slate-400);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.priority-btn.active {
    transform: scale(1.02);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.priority-btn.active.priority-low {
    border-color: var(--emerald-700);
    background: var(--emerald-100);
    color: var(--emerald-700);
}

.priority-btn.active.priority-medium {
    border-color: var(--amber-700);
    background: var(--amber-100);
    color: var(--amber-700);
}

.priority-btn.active.priority-high {
    border-color: var(--orange-700);
    background: var(--orange-100);
    color: var(--orange-700);
}

.priority-btn.active.priority-critical {
    border-color: var(--red-700);
    background: var(--red-100);
    color: var(--red-700);
}

.tag-btn.active {
    transform: scale(1.02);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.priority-btn:disabled, .tag-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.priority-btn:hover:not(:disabled), .tag-btn:hover:not(:disabled) {
    border-color: var(--indigo-300);
}

.tag-btn.active {
    border-color: var(--indigo-500);
    background: var(--indigo-50);
    color: var(--indigo-600);
    font-weight: 700;
}

.sidebar-meta {
    padding-top: 1rem;
    border-top: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6875rem;
}

.meta-label {
    font-weight: 700;
    color: var(--slate-400);
    text-transform: uppercase;
    opacity: 0.5;
}

.meta-value {
    font-weight: 700;
    color: var(--slate-700);
}

.progress-badge {
    font-size: 0.625rem;
    font-weight: 700;
    background: var(--indigo-100);
    color: var(--indigo-600);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
}

/* ===== ATTACHMENTS ===== */
.attachments-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.attachment-item {
    position: relative;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s;
}

.attachment-item:hover {
    border-color: var(--indigo-300);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.attachment-preview-wrapper {
    width: 100%;
    height: 120px;
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.attachment-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.attachment-icon {
    font-size: 2rem;
    color: var(--slate-400);
}

.attachment-info {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.attachment-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--slate-700);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-type {
    font-size: 0.625rem;
    color: var(--slate-400);
    text-transform: uppercase;
}

.attachment-empty {
    text-align: center;
    padding: 2rem;
    color: var(--slate-400);
    font-size: 0.875rem;
    font-style: italic;
    background: var(--slate-50);
    border: 2px dashed var(--slate-200);
    border-radius: 0.5rem;
}

.btn-upload {
    padding: 0.5rem 1rem;
    background: var(--indigo-600);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-upload:hover {
    background: var(--indigo-700);
}

.btn-delete-attachment {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.375rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-item:hover .btn-delete-attachment {
    opacity: 1;
}

.btn-delete-attachment:hover {
    background: var(--red-600);
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
    background-clip: content-box;
}
