body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background: #f5f5f5;
}

header {
    background: #212121;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

.admin-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    background: #ffffff;
    border-right: 1px solid #ddd;
    width: 200px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar button {
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: #212121;
    text-align: left;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.sidebar button:hover {
    background: #eee;
}

/* Content */
.admin-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 100%;
}


.section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #f5f5f5;
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-box h2 {
    margin-bottom: 1rem;
}

.login-box input {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.login-box button {
    background: #212121;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.admin-entry {
    background: #f9f9f9;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-btn {
    float: right;
    background: #ff4d4d;
    border: none;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.logout-btn:hover {
    background: #d63031;
}

.admin-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-entry {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
}

.admin-entry button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
}

.admin-entry button:hover {
    background: #d63031;
}


.section h2 {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
}

input[type="text"],
input[type="url"],
input[type="date"],
textarea {
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    resize: none;
}

textarea {
    min-height: 100px;
}

.form-buttons {
    margin-top: 1.2rem;
    display: flex;
    gap: 1rem;
}

button[type="submit"],
button[type="reset"] {
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    background-color: #212121;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

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

.hidden {
    display: none;
}
