/* ===========================================
   GLOBAL
=========================================== */

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background: #eef2f7;
    color: #1e293b;
}

.container {
    width: 95%;
    max-width: 1300px;
    margin: auto;
    padding: 30px 0;
}

/* ===========================================
   TÍTULO
=========================================== */

h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 28px;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ============================
   TOOLBAR — ALINHADA
============================ */

.toolbar {
    background: #ffffff;
    padding: 16px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.08);
}

/* Agrupamento correto */
.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Inputs */
.toolbar input[type="text"],
.toolbar input[type="file"] {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

/* Botões */
.toolbar button,
.toolbar input[type="submit"] {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.toolbar button:hover,
.toolbar input[type="submit"]:hover {
    background: #1d4ed8;
}

.toolbar button {
    background: #475569;
}

.toolbar button:hover {
    background: #334155;
}



/* ===========================================
   TABELA
=========================================== */

table {
    width: 100%;
    margin-top: 28px;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 14px;
    background: white;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

th {
    background: #f1f5f9;
    padding: 16px;
    text-align: left;
    font-size: 15px;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

td {
    padding: 14px 16px;
    font-size: 15px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

tr:last-child td {
    border-bottom: none;
}

.file-row:hover {
    background: #f8fafc;
}

/* Layout dos ícones + nome */
.file-row td:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===========================================
   ÍCONES
=========================================== */

.folder-icon,
.file-icon {
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.folder-icon::before {
    content: "📁";
    font-size: 20px;
}

.file-icon::before {
    content: "📄";
    font-size: 20px;
}

/* ===========================================
   LINKS
=========================================== */

a {
    text-decoration: none;
    font-weight: 600;
    color: #2563eb;
    transition: .2s;
}

a:hover {
    opacity: 0.75;
}

.btn-danger {
    color: #ef4444 !important;
}
.btn-danger:hover {
    color: #dc2626 !important;
}

/* ===========================================
   AÇÕES
=========================================== */

td:last-child a {
    padding: 3px 0;
    display: inline-block;
}

/* ===========================================
   PREVIEW PAGE
=========================================== */

.preview-box {
    width: 90%;
    max-width: 900px;
    background: white;
    margin: auto;
    margin-top: 40px;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.preview-box img,
.preview-box iframe {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
