body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

article header {
    padding: 10px 0;
    width: 65%;
    margin: 0 auto;
}

.article-editor header h1 {
    font-size: 1.75rem;
    margin: 0;
}

.article-editor header p {
    font-size: 1rem;
    margin: 0.8rem 0;
}

.article-editor > section {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    width: 65%;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 65%;
    margin: 0 auto;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #31577b;
    border-radius: 5px;
    padding: 4px 8px;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

nav > section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}


#articles > * {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #fff;
    padding: 20px 20px;
    border-radius: 5px;
    width: 65%;
    margin: 0 auto;
}


#articles * {
    color: black;
    text-decoration: none;
}

.article_draft_notifier,.error {
    color: red !important;
    font-weight: bold;
}

#articles .article_draft {
    background-color: #d7d7d7;
}

#articles {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 auto;
}

.article_title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article_data {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0;
}

.article_actions {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: column;

    direction: rtl;
    gap: 0.75rem;
}

#articles h3 {
    margin: 0;
}

.ikonki {
    width: 20px;
    height: 20px;
    fill: black
}

.error-message {
    color: red;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* article editor */
.article-editor {
    display: flex;
    flex-direction: column;
}

.article-editor .form-controls {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.article-editor .form-controls label {
    margin-bottom: 1rem;
    font-weight: bold;

    * {
        margin-top: 0.5rem;
    }
}

.article-editor .form-controls input[type="text"], .article-editor .form-controls select
{
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.article-editor .form-controls input[type="checkbox"]  {
    /* TODO: make prettier */
    width: auto;
}

/* Login */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.login-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    margin: 2rem auto;
    max-width: 300px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Settings */
#settings-forms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.settings-article > section {
    width: 65%;
    margin: 0 auto;
}

@media (max-width: 1500px) {
  #settings-forms {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 1000px) {
    .settings-article > section {
        width: 100%;
    }
}

#settings-forms h2 {
    margin: 0;
}

#settings-forms form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 5px;
    height: 20rem;
}

.form-content {
    justify-content: space-between;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.scrollable-div {

    display:flex;
    flex-direction: column;
    flex-grow: 1;
    max-height: auto;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 0.5rem;
    gap: 0.5rem;
    border-radius: 5px;

    .category-item {
        display: flex;
        flex-direction: row;
    }

    .category-actions {
        margin-left: auto;
        display: flex;
        gap: 0.5rem;
    }
}