* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6f9;
    color: #222;
}
.topbar {
    background: #1f2a44;
    color: #fff;
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar .logo { color: #fff; font-weight: bold; font-size: 20px; text-decoration: none; }
.topbar nav a {
    color: #dbe2f0;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
}
.topbar nav a:hover { color: #fff; }

.container { max-width: 1000px; margin: 30px auto; padding: 0 20px; }

.hero {
    text-align: center;
    background: #fff;
    padding: 60px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.hero h1 { font-size: 28px; margin-bottom: 10px; }
.hero p { color: #555; margin-bottom: 25px; }

.btn {
    display: inline-block;
    background: #2f6feb;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin: 4px;
}
.btn:hover { background: #244fb0; }
.btn-outline {
    background: transparent;
    color: #2f6feb;
    border: 1px solid #2f6feb;
}

.form-card, .view-card {
    background: #fff;
    max-width: 450px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.view-card { max-width: 700px; }
.form-card label { display: block; margin-top: 12px; font-size: 14px; color: #444; }
.form-card input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.form-card button { margin-top: 20px; width: 100%; }
.alert { background: #fdecea; color: #b3261e; padding: 10px; border-radius: 6px; }
.success { background: #e6f4ea; color: #1e7c34; padding: 10px; border-radius: 6px; }

.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; }
.small-link { font-size: 13px; }
.actions button { margin-left: 8px; }

.popup-box {
    display: none;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.popup-box.show { display: block; }
.popup-box input[type=text] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-right: 8px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}
.card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #222;
}
.card .icon { font-size: 34px; }
.card .name {
    margin-top: 8px;
    font-size: 13px;
    word-break: break-word;
    max-height: 40px;
    overflow: hidden;
}
.file-card .meta { font-size: 11px; color: #777; margin-top: 8px; }
.card-actions { margin-top: 10px; display: flex; justify-content: center; gap: 8px; font-size: 12px; }
.card-actions a { color: #2f6feb; text-decoration: none; }

.preview { margin: 20px 0; }
.meta { color: #666; font-size: 14px; }

.share-box { display: flex; gap: 8px; margin: 15px 0; }
.share-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 13px;
}
