/* Styles for the Dashboard (File Browser Interface) */
.dashboard-layout {
display: flex;
gap: 20px;
padding: 20px;
max-width: 1200px;
margin: 0 auto;
align-items: flex-start; /* Align items to the top */
}
.dashboard-sidebar {
flex: 0 0 250px;
background-color: var(--card-background);
border-radius: 8px;
box-shadow: 0 4px 12px var(--shadow-color);
padding: 20px;
position: sticky;
top: 100px;
max-height: calc(100vh - 120px);
overflow-y: hidden;
overflow-x: hidden;
}
.dashboard-sidebar::-webkit-scrollbar {
display: none;
}
.dashboard-sidebar {
-ms-overflow-style: none;
scrollbar-width: none;
}
.sidebar-menu ul {
list-style: none;
padding: 0;
margin: 0;
}
.sidebar-menu ul li {
margin-bottom: 10px;
}
.sidebar-menu ul li a {
display: flex;
align-items: center;
padding: 10px 15px;
border-radius: 5px;
color: var(--text-color);
text-decoration: none;
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.sidebar-menu ul li a:hover,
.sidebar-menu ul li a.active {
background-color: var(--accent-color);
color: white;
}
.sidebar-menu ul li a img.icon {
width: 20px;
height: 20px;
margin-right: 10px;
filter: invert(30%) sepia(100%) saturate(2000%) hue-rotate(180deg) brightness(80%) contrast(100%); /* Example: change icon color */
}
.sidebar-menu ul li a:hover img.icon,
.sidebar-menu ul li a.active img.icon {
filter: invert(100%) brightness(200%); /* Example: change icon color to white on hover/active */
}
.sidebar-storage-quota {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid var(--border-color);
}
.sidebar-storage-quota h4 {
font-size: 1rem;
color: var(--text-color);
margin-bottom: 10px;
}
.sidebar-notifications {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid var(--border-color);
}
.sidebar-notifications h4 {
font-size: 1rem;
color: var(--text-color);
margin-bottom: 10px;
}
.sidebar-notifications ul {
list-style: none;
padding: 0;
margin: 0;
}
.sidebar-notifications ul li {
font-size: 0.9rem;
color: var(--light-text-color);
margin-bottom: 5px;
}
.sidebar-notifications p {
font-size: 0.9rem;
color: var(--light-text-color);
}
.sidebar-help {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid var(--border-color);
}
.dashboard-content {
flex: 1;
background-color: var(--card-background);
border-radius: 8px;
box-shadow: 0 4px 12px var(--shadow-color);
padding: 20px;
}
.dashboard-content-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
flex-wrap: wrap;
gap: 10px;
}
.dashboard-content-header h2 {
margin: 0;
font-size: 1.8rem;
color: var(--text-color);
}
.dashboard-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.dashboard-actions .btn-primary,
.dashboard-actions .btn-outline {
padding: 0.6rem 1.2rem;
font-size: 0.9rem;
}
.file-search-bar {
width: 100%;
padding: 10px 15px;
border: 1px solid var(--border-color);
border-radius: 20px;
font-size: 1rem;
outline: none;
margin-bottom: 20px;
transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.file-search-bar:focus {
border-color: var(--accent-color);
box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.2);
}
.file-list-table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
table-layout: fixed;
}
.file-list-table th,
.file-list-table td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid var(--border-color);
}
.file-list-table th {
background-color: var(--background-color);
color: var(--text-color);
font-weight: 600;
font-size: 0.9rem;
text-transform: uppercase;
}
.file-list-table td {
color: var(--light-text-color);
word-break: break-all;
overflow-wrap: break-word;
max-width: 300px;
}
.file-list-table tr:last-child td {
border-bottom: none;
}
.file-list-table .file-icon {
width: 18px;
height: 18px;
vertical-align: middle;
margin-right: 8px;
}
.file-list-table .action-ellipsis {
cursor: pointer;
font-size: 1.2rem;
color: var(--light-text-color);
}
.file-list-table a {
word-break: break-all;
overflow-wrap: break-word;
}
.file-list-table th:first-child,
.file-list-table td:first-child {
width: 40px;
max-width: 40px;
}
.file-list-table th:nth-child(2),
.file-list-table td:nth-child(2) {
width: 40%;
min-width: 150px;
}
.file-list-table th:nth-child(3),
.file-list-table td:nth-child(3) {
width: 20%;
}
.file-list-table th:nth-child(4),
.file-list-table td:nth-child(4) {
width: 15%;
}
.file-list-table th:nth-child(5),
.file-list-table td:nth-child(5) {
width: 10%;
}
.file-list-table th:last-child,
.file-list-table td:last-child {
width: 15%;
}
/* Responsive adjustments */
@media (max-width: 992px) {
.dashboard-layout {
flex-direction: column;
padding: 15px;
}
.dashboard-sidebar {
position: static; /* Remove sticky on smaller screens */
flex: none;
width: 100%;
max-height: none;
margin-bottom: 20px;
}
.dashboard-content-header {
flex-direction: column;
align-items: flex-start;
}
.dashboard-actions {
width: 100%;
justify-content: flex-start;
}
.dashboard-actions .btn-primary,
.dashboard-actions .btn-outline {
flex: 1; /* Make buttons take equal width */
}
}
@media (max-width: 600px) {
.dashboard-layout {
padding: 10px;
}
.dashboard-sidebar {
padding: 15px;
}
.dashboard-content {
padding: 15px;
}
.file-list-table th,
.file-list-table td {
padding: 10px 12px;
font-size: 0.85rem;
}
.file-list-table td {
max-width: 150px;
}
}