* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f7f7f5;
    color: #2b2b2b;
    line-height: 1.6;
}

header {
    max-width: 600px;
    margin: 50px auto 0 auto;
    padding: 0 20px;
    text-align: center;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.brand img {
    width: 64px;
    height: 64px;
}

.brand h1 {
    font-size: 24px;
}

.tagline {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.authorize-link {
    text-align: center;
    margin-bottom: 40px;
}

.authorize-link a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #2b2b2b;
    text-decoration: none;
    font-size: 14px;
    margin-top: 8px;
}

.authorize-link a:hover {
    border-color: #999;
}

main {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.upload-container,
.past-folders {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.upload-container h2,
.past-folders h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.note {
    color: #999;
    font-size: 12px;
    margin-bottom: 20px;
}

.upload-container form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

button[type="submit"] {
    padding: 10px 24px;
    background-color: #2b2b2b;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #444;
}

.past-folders table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.past-folders th {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
}

.past-folders td {
    padding: 12px 8px;
    border-bottom: 1px solid #f2f2f2;
    font-size: 14px;
}

.past-folders tr:last-child td {
    border-bottom: none;
}

.past-folders td.actions {
    display: flex;
    gap: 16px;
}

.past-folders a {
    color: #2b2b2b;
    text-decoration: none;
    font-size: 13px;
}

.past-folders a:hover {
    text-decoration: underline;
}

#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

footer a {
    color: inherit;
    text-decoration: underline;
}

.spinner {
    border: 8px solid #444;
    border-top: 8px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 12px;
}

.logo-dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .logo-light {
        display: none;
    }
    .logo-dark {
        display: inline;
    }
}

.policy-container {
    width: 100%;
    max-width: 1000px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 40px;
    text-align: left;
    margin: 0 auto;
}

input[name="folder_name"]::placeholder {
    font-style: italic;
}

.policy-container h2 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 18px;
}

.policy-container p,
.policy-container ul {
    margin-bottom: 12px;
}

.feedback-section {
    max-width: 700px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    text-align: center;
}

.feedback-section h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feedback-section p {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.feedback-section iframe {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background-color: #ffffff;
}
.policy-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}