body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    background-color: #f7f7f7;
    color: #030303;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

h2 {
    color: #030303;
    border-bottom: 2px solid #ccc;
    justify-content: center;
    margin-top: 10px;
}

#login {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    gap: 15px;
    height: 50%;
    max-height: 250px;
    justify-content: center;
}

#login input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #9e9e9e;
    font-size: 16px;
}

#login button {
    background-color: #333;
    color: #EAF4EB;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

#login button:hover {
    background-color: #555;
}

#adminPanel {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.admin-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.admin-controls button {
    background-color: #333;
    color: #EAF4EB;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.admin-controls button:hover {
    background-color: #555;
}

#addSection, #editSection {
    background: beige;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    justify-content: center;
}

#addSection input,
#addSection textarea,
#addSection select {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

#addSection button {
    margin-top: 10px;
    background-color: #333;
    color: #EAF4EB;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

#addSection button:hover {
    background-color: #555;
}

#newsList, #eventList, #mediaList {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#editSection b {
    font-size: 18px;
    margin-top: 10px;
}
#editSection b, a {
    display: block;
}

#editSection a {
    display: inline-block;
    text-decoration: none;
    color: #333;
    background: #EAF4EB;
    border-radius: 8px;
    border: 2px dashed #333;
    padding: 10px 15px;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 600;
}

#editSection a:hover {
    background-color: #c8ccc8;
}

#editSection button {
    margin-top: 5px;
    background-color: #333;
    color: #EAF4EB;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

#editSection button:hover {
    background-color: #555;
}

#newsList > div,
#eventList > div,
#mediaList > div {
    border-bottom: 2px dashed #ccc;
    padding-bottom: 15px;
}

#newsList > div:last-child,
#eventList > div:last-child,
#mediaList > div:last-child {
    border-bottom: none;
}