
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f1f1f1;
}

/* Container */
.container {
    width: 600px;
    max-width: 90%;
    padding: 40px;
    background: white;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
    margin: auto;
}

/* Buttons */
a.button {
    display: inline-block;
    padding: 10px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 10px;
}

a.button:hover {
    background-color: #0056b3;
}

button {
    width: 90%;
    padding: 12px;
    background: blue;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

button:hover {
    background: darkblue;
    transform: scale(1.05);
}

/* File Download Button */
.download-btn {
    width: 90%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s;
    margin-top: 20px;
}

.download-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

/* Input Fields */
input {
    width: 90%;
    padding: 12px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease-in-out;
}

input:focus {
    border-color: blue;
}

/* Folder Section */
.folder-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.folder-item {
    width: 120px;
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.2s, background-color 0.2s;
}

.folder-item:hover {
    transform: translateY(-3px);
    background-color: #eef5ff;
}

.folder-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.folder-name {
    font-weight: bold;
    word-break: break-word;
}

.folder-name[contenteditable] {
    outline: 1px dashed #aaa;
    padding: 2px;
    border-radius: 4px;
}

/* Folder Delete Button */
.delete-folder {
    position: absolute;
    top: 6px;
    right: 10px;
    color: red;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}

.delete-folder:hover {
    color: darkred;
}

/* File Section */
.file-grid {
    margin-top: 40px;
}

.file-item {
    display: flex;
    align-items: center;
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
}

.file-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
}

.file-icon {
    font-size: 32px;
}

.file-name {
    font-weight: bold;
    word-wrap: break-word;
    margin-top: 5px;
}

.file-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.file-actions a {
    color: #007bff;
    text-decoration: none;
}

.file-actions a:hover {
    text-decoration: underline;
}

/* Manage Folders Form */
form input[type="text"] {
    padding: 8px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    padding: 8px 14px;
    border: none;
    background-color: #28a745;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #218838;
}
