/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

body.dark-mode {
    background-color: #1a1a2e;
    color: #e0e0e0;
}

body.light-mode {
    background-color: #e6f0fa;
    color: #333;
}

.navbar {
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.blue-navbar {
    background-color: #16213e;
}

body.dark-mode .navbar {
    background-color: #16213e;
}

body.light-mode .navbar {
    background-color: #16213e;
}

.navbar a {
    float: left;
    display: block;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
}

.navbar a {
    color: white;
}

.navbar a:hover {
    background-color: #0f3460;
}

.navbar .logo {
    float: left;
    width: 50px;
    height: 50px;
    margin-right: 20px;
}

.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

body.dark-mode .container {
    background-color: #0f3460;
}

body.light-mode .container {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

body.dark-mode .login-container {
    background-color: #0f3460;
}

body.light-mode .login-container {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.login-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

h1, h2 {
    margin-bottom: 20px;
}

body.dark-mode h1, body.dark-mode h2 {
    color: #e0e0e0;
}

body.light-mode h1, body.light-mode h2 {
    color: #333;
}

h1 {
    font-weight: 300;
}

.message {
    margin-bottom: 20px;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode .message {
    color: #00a8cc;
    border: 1px solid #00a8cc;
    background-color: #1a1a2e;
}

body.light-mode .message {
    color: #333;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
}

.stats-section, .upload-section, .directory-section, .logo-section, .files-section {
    margin-bottom: 30px;
    text-align: left;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

body.dark-mode .stats-section, body.dark-mode .upload-section, body.dark-mode .directory-section, body.dark-mode .logo-section, body.dark-mode .files-section {
    background: #16213e;
}

body.light-mode .stats-section, body.light-mode .upload-section, body.light-mode .directory-section, body.light-mode .logo-section, body.light-mode .files-section {
    background: #f9f9f9;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.stats-section h2, .upload-section h2, .directory-section h2, .logo-section h2, .files-section h2 {
    border-bottom: 2px solid #00a8cc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

body.dark-mode label {
    color: #00a8cc;
}

body.light-mode label {
    color: #333;
}

input[type="file"], input[type="text"], input[type="email"], input[type="password"], select {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

input[type="file"]:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus {
    border-color: #00a8cc;
}

button, .button {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #fff;
}

body.dark-mode button, body.dark-mode .button {
    background-color: #00a8cc;
}

body.light-mode button, body.light-mode .button {
    background-color: #333;
}

body.dark-mode button:hover, body.dark-mode .button:hover {
    background-color: #0097e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

body.light-mode button:hover, body.light-mode .button:hover {
    background-color: #00a8cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.files-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.file-item {
    flex: 1 0 21%;
    max-width: 21%;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

body.dark-mode .file-item {
    background: #1a1a2e;
}

body.light-mode .file-item {
    background: #f0f0f0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.file-item .file-checkbox {
    margin-bottom: 10px;
    width: 20px;
    height: 20px;
}

.file-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.file-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.file-item p {
    font-weight: 300; /* Fonte mais leve para os nomes dos arquivos */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

.file-item .file-actions {
    display: flex;
    flex-direction: column;
}

.file-viewer {
    margin-top: 30px;
}

.file-preview {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

body.dark-mode .modal-content {
    background-color: #1a1a2e;
}

body.light-mode .modal-content {
    background-color: #f0f0f0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.close {
    color: #ccc;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.table-list {
    width: 100%;
    border-collapse: collapse;
}

.table-list th, .table-list td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

body.dark-mode .table-list th {
    background-color: #16213e;
    color: #e0e0e0;
}

body.light-mode .table-list th {
    background-color: #e0e0e0;
    color: #333;
}

body.dark-mode .table-list tr:nth-child(even) {
    background-color: #1a1a2e;
}

body.light-mode .table-list tr:nth-child(even) {
    background-color: #f0f0f0;
}

.table-list tr:hover {
    background-color: #0f3460;
}

.file-name-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.view-toggle {
    text-align: right;
    margin-bottom: 20px;
}

.tab {
    overflow: hidden;
    border-bottom: 1px solid #ccc;
}

body.dark-mode .tab {
    background-color: #16213e;
}

body.light-mode .tab {
    background-color: #e0e0e0;
}

.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    color: #fff; /* Botões com texto branco */
}

.tab button:hover {
    background-color: #0f3460;
}

.tab button.active {
    background-color: #00a8cc;
    color: #fff;
}

.tabcontent {
    display: none;
    padding: 20px;
    border-top: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    float: right;
    margin-top: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #00a8cc;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.footer-container {
    padding: 20px;
    text-align: center;
    background-color: #16213e;
    color: #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.footer-container.blue-footer {
    background-color: #16213e;
}

.footer-logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.footer-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
}

.footer-links li {
    display: inline;
    margin: 0 10px;
}

.footer-links a {
    color: #00a8cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0097e6;
}

.footer-date-time {
    font-size: 14px;
    margin-top: 10px;
}

@media screen and (max-width: 768px) {
    .files-grid, .file-item {
        flex: 1 0 100%;
        max-width: 100%;
    }

    .file-actions {
        flex-direction: row;
        justify-content: space-between;
    }

    .file-actions .button {
        flex: 1;
        margin: 2px;
        font-size: 12px;
    }
}
