:root {
    --primary: #0061ff;
    --primary-hover: #0052d9;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    background: var(--card);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    margin-bottom: 20px;
}

.logo-img {
    max-height: 80px;
    width: auto;
}

h1 {
    font-size: 2.2rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

p {
    color: var(--text-muted);
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.file-browser {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.header-row {
    display: flex;
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.file-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    align-items: center;
}

.file-item:hover {
    background-color: #f1f5f9;
    transform: translateX(4px);
}

.file-item.directory {
    color: var(--primary);
}

.file-name {
    flex: 1;
}

.file-size {
    width: 100px;
    text-align: right;
}

.file-item span.name i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
}

button {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: var(--primary-hover);
}

button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.success-icon {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 20px;
}

.debug-box {
    margin-top: 25px;
    padding: 15px;
    background: #fdf2f2;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    text-align: left;
}

.debug-box p {
    margin: 0 0 5px 0;
    font-size: 0.8rem;
    color: #991b1b;
}

.debug-box a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    word-break: break-all;
}