body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #fff;
    color: #000;
    padding: 10px 20px;
    text-align: center;
}

header p a {
    color: #000;
    text-decoration: none;
}

header p a:hover {
    text-decoration: underline;
}

header h1 {
    margin: 0;
}

header p {
    margin: 5px 0;
}

main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2, h3 {
    color: #333;
}

nav {
    margin-bottom: 20px;
}

nav a {
    text-decoration: none;
    color: #007BFF;
}

nav a:hover {
    text-decoration: underline;
}

form {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
input[type="file"],
select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.button {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.button:hover {
    background-color: #0056b3;
}

.button.delete {
    background-color: #dc3545;
}

.button.delete:hover {
    background-color: #c82333;
}

.error {
    color: #dc3545;
    margin-bottom: 10px;
}

.success {
    color: #28a745;
    margin-bottom: 10px;
}

.folder-list {
    margin-top: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.folder-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e8eaed;
    transition: background-color 0.2s;
}

.folder-item:hover {
    background-color: #f1f3f4;
}

.folder-icon {
    margin-right: 12px;
}

.folder-icon .fas.fa-folder {
    color: #f4b400; /* Google Drive yellow */
    font-size: 24px;
}

.folder-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.folder-name {
    color: #202124;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.folder-name:hover {
    text-decoration: underline;
}

.folder-role {
    color: #5f6368;
    font-size: 12px;
    margin-top: 2px;
}

.folder-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.permission-form, .delete-form {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.permission-form select {
    padding: 6px;
    font-size: 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
}

.no-users {
    color: #5f6368;
    font-size: 12px;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.thumbnail {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.file-item img {
    margin-right: 10px;
}

.file-info {
    font-size: 0.9em;
    flex-grow: 1;
}

.file-info a {
    color: #007BFF;
    text-decoration: none;
}

.file-info a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .folder-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .folder-actions {
        margin-top: 10px;
        flex-wrap: wrap;
    }

    .permission-form, .delete-form {
        width: 100%;
        justify-content: flex-start;
    }

    .permission-form select, .button {
        width: 100%;
        margin-bottom: 5px;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-item img {
        margin-bottom: 10px;
    }

    .file-info {
        width: 100%;
    }

    .button.delete {
        width: 100%;
    }
}