:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --navy: #172033;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --background: #f6f8fc;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.navbar {
    min-height: 72px;
    background: var(--navy);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-brand i {
    color: #a5b4fc;
    font-size: 1.55rem;
}

.usuario-logado {
    color: #dbe4f0;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
}

.usuario-logado:hover {
    color: #ffffff;
}

.btn-sair {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-sair:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), transparent 35%),
        linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 42px;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(30, 41, 59, 0.12);
}

.login-brand {
    margin-bottom: 32px;
    text-align: center;
}

.login-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border-radius: 20px;
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.25);
}

.login-icon i {
    font-size: 2rem;
}

.login-brand h1 {
    margin-bottom: 8px;
    font-size: 1.85rem;
    font-weight: 750;
}

.login-brand p,
.page-header p,
.empty-state p {
    color: var(--muted);
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.input-group-text,
.form-control {
    min-height: 48px;
    border-color: var(--border);
}

.input-group-text {
    color: var(--muted);
    background: #f8fafc;
}

.form-control:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.12);
}

.btn-login,
.btn-nova-pasta {
    color: #ffffff;
    background: var(--primary);
    border: none;
    font-weight: 650;
}

.btn-login {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
}

.btn-login:hover,
.btn-nova-pasta:hover {
    color: #ffffff;
    background: var(--primary-dark);
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.page-label {
    margin-bottom: 5px;
    color: var(--primary) !important;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.page-header h1 {
    margin-bottom: 7px;
    font-size: 2rem;
    font-weight: 750;
}

.page-header p {
    margin-bottom: 0;
}

.btn-nova-pasta {
    padding: 11px 18px;
    border-radius: 11px;
}

.empty-state {
    min-height: 410px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 45px 20px;
    text-align: center;
    background: var(--white);
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
}

.empty-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    color: var(--primary);
    background: #eef2ff;
    border-radius: 24px;
}

.empty-icon i {
    font-size: 2.4rem;
}

.empty-state h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.empty-state p {
    max-width: 430px;
    margin-bottom: 22px;
}

@media (max-width: 700px) {
    .login-card {
        padding: 30px 24px;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .usuario-logado {
        display: none;
    }
}

.folder-card {
    height: 100%;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.folder-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.folder-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.folder-card-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: #eef2ff;
    border-radius: 15px;
}

.folder-card-icon i {
    font-size: 1.7rem;
}

.folder-options {
    color: var(--muted);
    border: none;
}

.folder-options:hover {
    color: var(--primary);
    background: #f1f5f9;
}

.folder-card h2 {
    margin-bottom: 14px;
    overflow: hidden;
    font-size: 1.15rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-information {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.85rem;
}

.folder-information span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.folder-date {
    color: #94a3b8;
    font-size: 0.8rem;
}

.btn-open-folder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding: 10px 14px;
    color: var(--primary);
    background: #eef2ff;
    border: none;
    border-radius: 10px;
    font-weight: 650;
}

.btn-open-folder:hover {
    color: #ffffff;
    background: var(--primary);
}

.modal-folder {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.2);
}

.modal-folder .modal-header {
    align-items: flex-start;
    padding: 24px 24px 14px;
    border-bottom: none;
}

.modal-folder .modal-title {
    font-size: 1.35rem;
    font-weight: 750;
}

.modal-folder .modal-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.modal-folder .modal-body {
    padding: 14px 24px 24px;
}

.modal-folder .modal-footer {
    padding: 18px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    border-radius: 0 0 20px 20px;
}

.btn-cancel {
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
}

.btn-cancel:hover {
    background: #f1f5f9;
}

.folder-breadcrumb {
    margin-bottom: 28px;
}

.folder-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.folder-breadcrumb a:hover {
    text-decoration: underline;
}

.folder-title-icon {
    margin-right: 8px;
    color: var(--primary);
}

.folder-actions {
    display: flex;
    flex-wrap: nowrap;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
}

.folder-actions > .btn,
.folder-actions > a.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-upload {
    padding: 11px 18px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 11px;
    font-weight: 650;
}

.btn-upload:not(:disabled):hover {
    color: var(--primary);
    background: #eef2ff;
}

.section-title {
    margin-bottom: 20px;
    font-size: 1.15rem;
    font-weight: 750;
}

.file-list {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.file-item:last-child {
    border-bottom: none;
}

.file-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: #eef2ff;
    border-radius: 12px;
}

.file-item p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

@media (max-width: 700px) {
    .folder-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .folder-actions .btn {
        flex: 1;
    }
}

.upload-information {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    color: var(--muted);
    background: #f8fafc;
    border-radius: 10px;
    font-size: 0.82rem;
}

.upload-information i {
    margin-top: 1px;
    color: var(--primary);
}

.dropdown-menu {
    min-width: 175px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.14);
}

.dropdown-item {
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #fef2f2;
}

.folder-owner {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: -5px 0 14px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 650;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-view-file {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    color: var(--primary);
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 650;
}

.btn-view-file:hover {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
}

@media (max-width: 600px) {
    .file-item {
        align-items: flex-start !important;
        gap: 14px;
        flex-direction: column;
    }

    .file-actions {
        width: 100%;
        flex-direction: column;
    }

    .file-actions form,
    .btn-view-file,
    .btn-download-file,
    .btn-delete-file {
        width: 100%;
    }

    .btn-view-file,
    .btn-download-file,
    .btn-delete-file {
        justify-content: center;
    }
}

.btn-download-file {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 650;
}

.btn-download-file:hover {
    color: #ffffff;
    background: #059669;
    border-color: #059669;
}

.file-actions form {
    margin: 0;
}

.btn-delete-file {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 650;
}

.btn-delete-file:hover {
    color: #ffffff;
    background: #dc2626;
    border-color: #dc2626;
}

.btn-download-folder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 11px;
    font-weight: 650;
}

.btn-download-folder:hover {
    color: #ffffff;
    background: #059669;
    border-color: #059669;
}

/* Pesquisa no menu superior */
.navbar-organiza {
    min-height: 72px;
    flex-wrap: nowrap !important;
}

.navbar-search {
    width: auto;
    min-width: 240px;
    max-width: 420px;
    margin-right: 8px;
    margin-left: 8px;
}

.navbar-search .input-group {
    flex-wrap: nowrap;
}

.navbar-search .input-group-text,
.navbar-search .form-control,
.navbar-search .btn {
    min-height: 42px;
    border-color: rgba(255, 255, 255, 0.16);
}

.navbar-search .input-group-text {
    color: #a5b4fc;
    background: rgba(255, 255, 255, 0.08);
    border-right: none;
}

.navbar-search .form-control {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-right: none;
    border-left: none;
}

.navbar-search .form-control::placeholder {
    color: #aeb9ca;
}

.navbar-search .form-control:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

.btn-search-navbar {
    padding-right: 16px;
    padding-left: 16px;
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary) !important;
    font-size: 0.88rem;
    font-weight: 650;
}

.btn-search-navbar:hover {
    color: #ffffff;
    background: var(--primary-dark);
}

.navbar-user-actions {
    flex-shrink: 0;
    gap: 8px !important;
    white-space: nowrap;
}

.navbar-user-actions .btn {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 0.88rem;
}

/* Tela de resultados */
.search-page-form {
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.search-page-form .input-group-text {
    border-right: none;
}

.search-page-form .form-control {
    border-right: none;
    border-left: none;
}

.search-page-form .form-control:focus {
    border-color: var(--border);
}

.file-actions .btn-open-folder {
    width: auto;
    justify-content: center;
    gap: 7px;
    margin-top: 0;
    padding: 8px 13px;
    border: 1px solid #c7d2fe;
    font-size: 0.85rem;
}

.btn-rename-file {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 650;
}

.btn-rename-file:hover {
    color: #ffffff;
    background: #d97706;
    border-color: #d97706;
}

.btn-move-file {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 650;
}

.btn-move-file:hover {
    color: #ffffff;
    background: #0284c7;
    border-color: #0284c7;
}

.btn-email-file,
.btn-email-folder,
.btn-send-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #6d28d9;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 650;
}

.btn-email-file {
    padding: 8px 13px;
}

.btn-email-folder {
    min-height: 48px;
    padding-right: 15px;
    padding-left: 15px;
}

.btn-send-email {
    min-height: 46px;
    padding-right: 17px;
    padding-left: 17px;
}

.btn-email-file:hover,
.btn-email-folder:hover,
.btn-send-email:hover {
    color: #ffffff;
    background: #7c3aed;
    border-color: #7c3aed;
}

.zip-loading-overlay {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(3px);
}

.zip-loading-overlay.show {
    display: flex;
}

.zip-loading-card {
    width: 100%;
    max-width: 420px;
    padding: 30px;
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

.zip-loading-icon {
    width: 62px;
    height: 62px;
    display: grid;
    margin: 0 auto 17px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border-radius: 17px;
    font-size: 1.7rem;
}

.zip-loading-card h2 {
    margin-bottom: 7px;
    font-size: 1.25rem;
    font-weight: 750;
}

.zip-loading-card p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.9rem;
}

.zip-loading-progress {
    height: 9px;
    overflow: hidden;
    background: #e9edff;
    border-radius: 999px;
}

.zip-loading-progress .progress-bar {
    width: 100%;
    background: linear-gradient(90deg, #7c3aed, #4f46e5);
}

@media (max-width: 991px) {
    .navbar-organiza {
        flex-wrap: wrap !important;
        padding-top: 13px;
        padding-bottom: 13px;
    }

    .navbar-search {
        order: 3;
        width: 100%;
        min-width: 100%;
        max-width: none;
        margin-right: 0;
        margin-left: 0;
        flex-basis: 100%;
    }
}

@media (max-width: 700px) {
    .navbar-organiza {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .navbar-user-actions {
        gap: 8px !important;
    }

    .navbar-user-actions .btn {
        padding: 7px 9px;
        font-size: 0.82rem;
    }

    .navbar-search .btn-search-navbar {
        width: 44px;
        padding: 0;
        overflow: hidden;
        color: transparent;
        font-size: 0;
    }

    .navbar-search .btn-search-navbar::before {
        content: "\f52a";
        color: #ffffff;
        font-family: "bootstrap-icons";
        font-size: 1rem;
    }

    .search-page-form {
        padding: 12px;
    }

    .search-page-form .input-group {
        flex-wrap: wrap;
    }

    .search-page-form .input-group-text {
        display: none;
    }

    .search-page-form .form-control {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 10px !important;
    }

    .search-page-form .btn {
        width: 100%;
        margin-top: 10px;
        border-radius: 10px !important;
    }

    .file-actions .btn-open-folder,
    .btn-rename-file,
    .btn-move-file {
        width: 100%;
        justify-content: center;
    }
}

/* Alteração de senha */
.account-page {
    max-width: 760px;
}

.account-card {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.account-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef2f7;
}

.account-icon {
    width: 58px;
    height: 58px;
    display: grid;
    flex-shrink: 0;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.2);
    font-size: 1.55rem;
}

.account-heading h1 {
    margin: 0 0 5px;
    font-size: 1.65rem;
    font-weight: 750;
}

.account-heading p:last-child {
    margin: 0;
    color: var(--muted);
}

.account-help {
    display: block;
    margin-top: 7px;
    color: var(--muted);
}

.account-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.account-actions .btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-right: 18px;
    padding-left: 18px;
    border-radius: 10px;
}

@media (max-width: 576px) {
    .account-card {
        padding: 22px 18px;
    }

    .account-heading {
        align-items: flex-start;
    }

    .account-actions {
        flex-direction: column-reverse;
    }

    .account-actions .btn {
        width: 100%;
    }
}

/* Painel de armazenamento */
.storage-summary > div {
    min-width: 205px;
}

.storage-card {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.storage-card-icon {
    width: 50px;
    height: 50px;
    display: grid;
    flex-shrink: 0;
    place-items: center;
    border-radius: 14px;
    font-size: 1.3rem;
}

.storage-card span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.78rem;
}

.storage-card strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.2;
}

.storage-card-purple .storage-card-icon {
    color: #4f46e5;
    background: #eef2ff;
}

.storage-card-blue .storage-card-icon {
    color: #2563eb;
    background: #eff6ff;
}

.storage-card-slate .storage-card-icon {
    color: #475569;
    background: #f1f5f9;
}

.storage-card-green .storage-card-icon {
    color: #059669;
    background: #ecfdf5;
}

.storage-card-amber .storage-card-icon {
    color: #d97706;
    background: #fffbeb;
}

.storage-economy {
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.storage-economy h2 {
    margin-bottom: 4px;
    font-size: 1.2rem;
    font-weight: 750;
}

.storage-economy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.storage-percentage {
    color: #059669;
    font-size: 1.5rem;
}

.storage-progress {
    height: 13px;
    background: #e8edf4;
    border-radius: 999px;
}

.storage-progress .progress-bar {
    background: linear-gradient(90deg, #4f46e5, #10b981);
    border-radius: 999px;
}

.storage-table-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.storage-table th {
    padding: 15px 17px;
    color: #475569;
    background: #f8fafc;
    border-bottom-color: var(--border);
    font-size: 0.8rem;
    white-space: nowrap;
}

.storage-table td {
    padding: 15px 17px;
    border-bottom-color: #eef2f7;
    font-size: 0.88rem;
    white-space: nowrap;
}

.storage-table tbody tr:last-child td {
    border-bottom: none;
}

.storage-user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.storage-user-avatar {
    width: 39px;
    height: 39px;
    display: grid;
    flex-shrink: 0;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border-radius: 12px;
    font-weight: 750;
}

.storage-user strong,
.storage-user small {
    display: block;
}

.storage-user small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.75rem;
}

@media (max-width: 700px) {
    .storage-summary > div {
        min-width: 100%;
    }

    .storage-economy {
        padding: 20px;
    }

    .storage-economy > div:first-child {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .storage-percentage {
        font-size: 1.3rem;
    }
}

/* Histórico de atividades */
.history-total {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #4338ca;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.history-filters {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.history-filters .form-select,
.history-filters .form-control {
    min-height: 46px;
    border-color: var(--border);
    border-radius: 10px;
}

.history-filters .form-select:focus,
.history-filters .form-control:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.1);
}

.history-filters .btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
}

.history-table-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.history-table th {
    padding: 14px 16px;
    color: #475569;
    background: #f8fafc;
    border-bottom-color: var(--border);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.history-table td {
    padding: 14px 16px;
    border-bottom-color: #eef2f7;
    font-size: 0.86rem;
    vertical-align: middle;
}

.history-table tbody tr:hover td {
    background: #fafbff;
}

.history-table tbody tr:last-child td {
    border-bottom: none;
}

.history-date {
    min-width: 105px;
    white-space: nowrap;
}

.history-date strong,
.history-date small {
    display: block;
}

.history-date small {
    margin-top: 3px;
    color: var(--muted);
}

.history-user {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 145px;
}

.history-user span {
    width: 32px;
    height: 32px;
    display: grid;
    flex-shrink: 0;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 750;
}

.history-action {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.history-action-login,
.history-action-visualizar {
    color: #4338ca;
    background: #eef2ff;
    border-color: #c7d2fe;
}

.history-action-logout {
    color: #475569;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.history-action-criar {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.history-action-enviar,
.history-action-baixar,
.history-action-baixar_zip {
    color: #0369a1;
    background: #f0f9ff;
    border-color: #bae6fd;
}

.history-action-renomear,
.history-action-mover {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}

.history-action-excluir {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.history-description {
    min-width: 260px;
    max-width: 420px;
    color: #475569;
}

.history-table code {
    padding: 4px 7px;
    color: #475569;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.history-table-wrapper + nav .page-link {
    color: var(--primary);
    border-color: var(--border);
}

.history-table-wrapper + nav .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.1);
}

@media (max-width: 700px) {
    .history-total {
        align-self: flex-start;
    }

    .history-filters {
        padding: 16px;
    }
}

/* Lixeira */
.trash-title-icon {
    color: #ef4444;
}

.btn-empty-trash {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-right: 16px;
    padding-left: 16px;
    color: #ffffff;
    background: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 11px;
    font-weight: 700;
}

.btn-empty-trash:hover {
    color: #ffffff;
    background: #b91c1c;
    border-color: #b91c1c;
}

.trash-card {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.trash-card-icon,
.trash-file-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    color: #ef4444;
    background: #fef2f2;
    border-radius: 12px;
}

.trash-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
}

.trash-card-content {
    min-width: 0;
    flex-grow: 1;
}

.trash-card-content h2 {
    margin: 0 0 5px;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trash-card-content p,
.trash-card-content small {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.btn-restore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 11px;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.btn-restore:hover {
    color: #ffffff;
    background: #059669;
    border-color: #059669;
}

.trash-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 7px;
}

.btn-delete-forever {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 9px;
}

.btn-delete-forever:hover {
    color: #ffffff;
    background: #dc2626;
    border-color: #dc2626;
}

.trash-file-list {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.trash-file-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-bottom: 1px solid #eef2f7;
}

.trash-file-item:last-child {
    border-bottom: none;
}

.trash-file-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
}

.trash-file-content {
    min-width: 0;
    flex-grow: 1;
}

.trash-file-content strong,
.trash-file-content span,
.trash-file-content small {
    display: block;
}

.trash-file-content strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trash-file-content span,
.trash-file-content small {
    color: var(--muted);
    font-size: 0.78rem;
}

@media (max-width: 700px) {
    .trash-header-actions,
    .trash-header-actions form,
    .trash-header-actions .btn {
        width: 100%;
    }

    .trash-card,
    .trash-file-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .trash-card .trash-actions,
    .trash-file-item .trash-actions {
        width: 100%;
        margin-left: 62px;
    }

    .trash-card .trash-actions form:first-child,
    .trash-file-item .trash-actions form:first-child {
        flex-grow: 1;
    }

    .trash-card .trash-actions .btn-restore,
    .trash-file-item .trash-actions .btn-restore {
        width: 100%;
    }
}
/* Correção do menu em celulares */
@media (max-width: 700px) {
    .navbar-organiza {
        align-items: stretch !important;
    }

    .navbar-brand {
        width: 100%;
        margin-right: 0;
    }

    .navbar-user-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px !important;
    }

    .navbar-user-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 1 auto;
    }

    .navbar-search {
        order: 3;
    }
}

.folder-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.folder-actions .btn i {
    margin: 0;
    line-height: 1;
}