:root {
    --faction-base-color: #E3000F;
}

/* General styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
}

/* Link styles */
a {
    color: #E3000F;
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid transparent;
}

a:hover, a:focus {
    color: #ffffff;
    border-bottom: 1px solid #B3000C;
}

a:active {
    color: #800008;
}

/* Header styles */
header {
    background-color: var(--faction-base-color);
    color: white;
    padding: 1rem;
    
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

header h1 {
    margin: 0;
}

.header-logo {
    width: 100px;
    height: auto;
}

nav ul {
    padding: 0;
    list-style-type: none;
}

nav ul li {
    display: inline;
    margin-right: 10px;
}

nav ul li a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 0 0 4px 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 0 0 4px 4px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #e6e6e6;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn {
    background-color: inherit;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropbtn::after {
    content: '\25BC';
    margin-left: 5px;
    font-size: 0.7em;
}

.dropdown:hover .dropbtn {
    background-color: #B3000C;
}

.dropdown:hover .dropbtn::after {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

/* Main content styles */
main {
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding-top: 0.5rem;
}

h2 {
    color: var(--faction-base-color);
}

/* Form styles */
form {
    margin-top: 1rem;
}

label {
    display: block;
    margin-top: 1rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 3px;
}

button {
    display: block;
    width: 100%;
    padding: 6px;
    margin-top: 20px;
    background-color: #E3000F;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    margin: 0em;
    padding-block: 4.5px;
}

button:hover {
    background-color: #B3000C;
}
.button {
    background-color: var(--faction-base-color);
    display: inline-block;
    width: 100%;
    padding: 6px;
    margin-top: 5px;
    background-color: #E3000F;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    padding-block: 4.5px;
    font-size: 0.9em;
}
.button2 {
    background-color: var(--faction-base-color);
    display:inline-block;
    width: 100%;
    margin-top: 20px;
    background-color: #E3000F;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
margin-top: 5px;
    font-size: 0.9em;
}


.button:hover {
    background-color: #B3000C;
}
form button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background-color: #E3000F;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    
}

form button:hover {
    background-color: #B3000C;
}

/* Motion list styles */
.motion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.motion-item {
    background-color: #f9f9f9;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.motion-item a {
    text-decoration: none;
    color: #E3000F;
    font-weight: bold;
}

.motion-item:hover {
    background-color: #f1f1f1;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.5rem;
    border: 1px solid #b1b1b1;
    text-align: left;
}

th {
    background-color: #FACTION_BASE_COLOR#;
    color: black;
}

/* Footer styles */
footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--faction-base-color);
    color: white;
    border-radius: 10px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

footer a {
    color: white;
    text-decoration: underline;
}

footer a:hover, footer a:focus {
    color: #f0f0f0;
    text-decoration: none;
}

/* Utility classes */
.error {
    color: #E3000F;
    font-weight: bold;
}

.success {
    color: #28a745;
    font-weight: bold;
}
header {
    position: relative;
    padding-bottom: 0%;
    
}


.header-logo {
    width: 100px; /* Set the maximum width of the logo */
    height: auto;
}

/* Styles for edit_profile.php */
.message {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
}

form {
    max-width: 500px;
    margin: 0;
}

form label {
    display: block;
    margin-top: 15px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form input[disabled] {
    background-color: #f4f4f4;
}


.ai-formulation-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    width: 100%;
    margin-top: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.ai-formulation-button:hover {
    background-color: #45a049;
}
