﻿:root {
    --drive-border: #dadce0;
    --drive-hover: #f1f3f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Product Sans', Roboto, Arial, sans-serif;
}

body {
    background-color: #f9fafe !important;
    overflow: hidden;
    color: #1f1f1f;
}

.main-container {
    height: calc(100vh - 64px);
    margin-top: 64px;
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 18px !important;
}

/* Header */
.drive-header {
    height: 64px;
    padding: 8px;
    display: flex;
    align-items: center;
    border-bottom: 0px solid #e1e4e8;
    position: fixed;
    width: 100%;
    top: 0;
    background: #f9fafe;
    z-index: 1000;
}

.drive-logo {
    display: flex;
    color: #575958;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin-right: 32px;
    cursor: pointer;
    border-radius: 4px;
}

.drive-logo:hover {
    background-color: ;
}

.drive-logo img {
    width: 95px;
    height: 30px;
    margin-left: 10px;
}

.drive-logo span {
    font-size: 22px;
    color: #1f1f1f;
    font-weight: 400;
}

/* Search Bar */
.search-bar {
    background: #e9edf6;
    border-radius: 50px;
    flex: 1;
    margin-left: 100px;
    max-width: 722px;
    height: 48px;
    display: flex;
    align-items: center;
    margin-right: 150px;
    transition: background 0.3s;
}

.search-bar:focus-within {
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.search-bar i {
    margin-left: 16px;
    color: #5f6368;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    padding: 2px 0 0 16px;
    font-size: 16px;
    color: #000;
    font-weight: 400;
}

.search-bar input:-webkit-autofill,
.search-bar input:-webkit-autofill:hover,
.search-bar input:-webkit-autofill:focus,
.search-bar input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    background-color: transparent !important;
    -webkit-text-fill-color: #000 !important;
}




.search-bar input::placeholder {
    color: #9aa0a6;
    opacity: 1;
}

/* Mobile Search Bar */
.mobile-search-bar {
    display: none;
    position: fixed;
    top: 8px;
    left: 15px;
    right: 15px;
    z-index: 1000;
    background: #fff;
    padding: 8px 16px;
    border-radius: 24px;
    align-items: center;
    gap: 8px;
    height: 48px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-search-bar input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 16px;
}

.mobile-search-bar input:-webkit-autofill,
.mobile-search-bar input:-webkit-autofill:hover,
.mobile-search-bar input:-webkit-autofill:focus,
.mobile-search-bar input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    background-color: transparent !important;
    -webkit-text-fill-color: inherit !important;
}

.mobile-search-bar i.close-search {
    cursor: pointer;
    color: #5f6368;
}

#search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.search-bar input:focus,
.mobile-search-bar input:focus {
    z-index: 1000;
    position: relative;
}

/* Main Container */
.main-container {
    height: calc(100vh - 64px - 20px);
    margin-top: 64px;
    padding-bottom: 40px;
}

@media (max-width: 768px) {
    .main-container {
        padding-bottom: 80px;
    }
}

/* Content Area */
.content {
    padding: 16px 20px;
    background: white;
    margin: 0px 15px 20px;
    margin-top: -25px;
    border-radius: 15px;
    overflow-y: auto;
    height: calc(100% - 1px);
    padding-bottom: 80px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Content Area */
.content-ref {
    padding: 16px 20px;
    background: white;
    margin: 0px 15px 20px;
    margin-top: -25px;
    border-radius: 15px;
    overflow-y: auto;
    height: calc(100% - 1px);
    padding-bottom: 80px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    background-image: url('a.png');
    background-repeat: repeat;
    background-size: auto;
    background-position: center;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    margin-top: 5px;
}

.page-title {
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    color: #413b32;
}

.content-header-dash {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    margin-top: 15px;
}

.content-header-dash h1 {
    margin-left: 10px !important;
    font-size: 17px !important;
}

.page-title-dash {
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    color: #413b32;
}

.content-subtitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 56px;
}

.page-subtitle {
    font-style: normal;
    font-weight: 400;
    color: #413b32;
    font-size: 22px !important;
}

.filter-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.filter-dropdown {
    display: none;
    margin-top: 16px;
}

.filter-dropdown .btn {
    background-color: #f1f3f4;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.filter-dropdown .dropdown-menu {
    background-color: #fff;
    border: none;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-dropdown .dropdown-item {
    padding: 8px 16px;
    cursor: pointer;
}

.filter-dropdown .dropdown-item:hover {
    background-color: #f6f8fa;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.filter-button {
    padding: 6px 16px;
    border: 1px solid #444746;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #444746;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
}

/* Folders Grid */
.folders-section {
    margin-top: 16px;
}

.section-title {
    font-family: 'Product Sans', Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: 15px;
    margin-top: 30px;
    line-height: 20px;
    color: #444746;
    margin-bottom: 18px;
}

.folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(249.25px, 1fr));
    grid-auto-rows: 48px;
    gap: 12px;
    padding: 4px;
}

.folder-item {
    background: #f0f4f9;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

.folder-item:hover {
    background-color: #dfe3e7;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.folder-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #1f1f1f;
    font-style: normal;
    font-weight: 500;
}

.folder-icon {
    color: #454746;
    font-size: 18px;
}

/* Arquivos Grid */
.arquivos-section {
    margin-top: 16px;
}

.section-title {
    font-family: 'Product Sans', Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: 15px;
    margin-top: 30px;
    line-height: 20px;
    color: #444746;
    margin-bottom: 18px;
}

.arquivos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(249.25px, 1fr));
    grid-auto-rows: 320px;
    gap: 12px;
    padding: 4px;
}

.arquivo-item {
    background: #f0f4f9;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.arquivo-item:hover {
    background-color: #dfe3e7;
    transition: background-color 0.3s ease;
}

.arquivo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    text-decoration: none;
}

.arquivo-name i {
    font-size: 20px;
    margin-top: -2px;
}

.arquivo-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #1f1f1f;
    font-style: normal;
    font-weight: 500;
    text-decoration: none;
}

.arquivo-icon {
    color: #454746;
    font-size: 18px;
    width: 20px;
    height: 20px;
}

.arquivo-preview {
    flex: 1;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.arquivo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Estilo para o ícone de três pontos */
.fa-ellipsis-v {
    cursor: pointer;
    padding: 8px;
    margin-right: -10px !important;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.fa-ellipsis-v:hover,
.fa-ellipsis-v[aria-expanded="true"] {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

.fa-ellipsis-v::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.folders-section .dropdown {
    position: relative;
}

.folders-section .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    top: 100%;
    z-index: 1000;
    min-width: 120px;
}

.folders-section .dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.folders-section .dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.folders-section .dropdown-item:focus,
.folders-section .dropdown-item:active {
    background-color: transparent;
    color: inherit;
    outline: none;
}

.folders-section .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.header-icons i {
    font-size: 20px;
}

.header-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.header-icon:hover,
.header-icon .dropdown-toggle[aria-expanded="true"] {
    background-color: rgba(0, 0, 0, 0.05);
}

.header-icon .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.header-icon .dropdown-toggle::after {
    display: none;
}

.header-icons .dropdown-menu {
    margin-top: 0.5rem;
}

.header-icons .dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 15px;
}

.header-icons .dropdown-item i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    font-size: 15px;
}

.header-icon.dropdown {
    position: relative;
}

.header-icon .dropdown-menu {
    right: 0;
    left: auto;
}

.header-icon .dropdown-item:focus,
.header-icon .dropdown-item:active {
    background-color: transparent;
    color: inherit;
    outline: none;
}

.header-icon .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border: 4px solid transparent;
    border-radius: 8px;
    background-clip: padding-box;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

/* Para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-bar {
        display: none;
    }

    .search-icon {
        display: flex !important;
    }

    .content-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .filter-buttons {
        display: none;
    }

    .filter-dropdown {
        display: block;
    }

    .view-toggle {
        margin-top: 0;
        align-self: flex-end;
    }
}

@media (min-width: 769px) {
    .search-icon {
        display: none !important;
    }

    .filter-dropdown {
        display: none;
    }
}

.back-link {
    color: var(--drive-text);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 20px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    margin-top: -10px;
}

.back-link:hover {
    background-color: var(--drive-hover);
}

.btn-add {
    margin-left: auto;
	
}

.user-name {
    padding: 2px 10px;
    color: #212429;
    font-weight: 400;
    font-size: 14px;
    cursor: default;
}

.footer {
    text-align: center;
    padding: -35px !important;
    margin-bottom: -25px !important;
    font-size: 14px;
    color: #5f6368;
    margin-top: auto;
}

.version {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.beta {
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .reference-search-input {
        font-size: 14px;
    }

    .footer {
        font-size: 12px;
        margin-top: 15px !important;
    }

    .beta {
        font-size: 8px;
    }
}

.pagination-container {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 15px;
    margin-top: -40px;
    background: transparent;
}

@media (max-width: 768px) {
    .pagination-container {
        margin-bottom: 40px;
    }
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    background: white;
    padding: 8px 16px;
    border-radius: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.pagination .page-item .page-link {
    border: none;
    color: #444746;
    padding: 8px 12px;
    border-radius: 50%;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #1f1f1f;
    color: #fff;
}

.pagination .page-item .page-link:hover {
    background-color: #f6f8fa;
    color: #1E1E1E;
}

.pagination .page-item.disabled .page-link {
    color: #dadce0;
    pointer-events: none;
}

.filter-button.active {
    background-color: #1f1f1f;
    color: #fff;
}

.btn-add-pu {
    margin-top: -35px !important;
}

/* Estilos gerais dos cards */
.cards-custom-card {
    border-radius: 15px;
    padding: 20px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border: 1px #dfe1eb solid;
    width: 100%;
    max-width: 100%;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .cards-custom-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }

    .content {
        padding-left: 10px;
        padding-right: 10px;
        overflow-y: scroll;
    }
}

.cards-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.cards-icon-section {
    text-align: center;
    margin-bottom: 20px;
}

.cards-icon-section i {
    font-size: 1.5rem;
    margin-top: 10px;
    color: #212429;
}

.cards-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    color: #212429;
    margin-top: 2px;
}

.cards-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.cards-btn-access {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
    .cards-custom-card {
        max-width: 100%;
    }
}