:root {
    --table-missing-color: #ffd1d1;
    --table-special-color: #bbe4c9;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

.login-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #333;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-button {
    padding: 0.75rem;
    font-size: 1rem;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-button:hover {
    background-color: #0056b3;
}

.home-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.home-header {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #333;
}

.home-header p {
    font-size: 1.2rem;
    color: #666;
}

.home-section {
    margin-top: 2rem;
    text-align: left;
}

.home-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.home-section p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.home-section ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.home-section ul li {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.home-section a {
    color: #007bff;
    text-decoration: none;
}

.home-section a:hover {
    text-decoration: underline;
}

.toolbar {
    background-color: #333;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.toolbar__name {
    color: white;
    padding: 14px 16px;
    text-align: center;
    text-decoration: none;
    font-size: 17px;
}

.toolbar__links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.toolbar__links--left {
    order: 1;
}

.toolbar__links--right {
    order: 3;
}

.toolbar__links li {
    display: inline;
}

.toolbar__links li a,
.toolbar__links li form button {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

.toolbar__links li a:hover,
.toolbar__links li form button:hover {
    background-color: #ddd;
    color: black;
}

.content-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.summary-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
}

.reload-button {
    display: block;
    margin: 0 auto 2rem auto;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.reload-button:hover {
    background-color: #0056b3;
}

.table-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.deployment-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.deployment-table th,
.deployment-table td {
    padding: 1rem;
    border: 1px solid #ddd;
    text-align: center;
}

.deployment-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.deployment-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.deployment-table tbody tr:hover {
    background-color: #f1f1f1;
}

.legend-container {
    margin-top: 2rem;
}

.legend {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend__colorBox {
    width: 1.5rem;
    height: 1.5rem;
    border: solid 1px #acacac;
    border-radius: 0.25rem;
}

.legend__colorBox[name="missing"] {
    background-color: var(--table-missing-color);
}

.undeploy-button {
    background-color: red;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.undeploy-button:hover {
    background-color: darkred;
}

.update-button {
    background-color: blue;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.update-button:hover {
    background-color: darkblue;
}

.view-button {
    background-color: grey;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.view-button:hover {
    background-color: rgb(70, 69, 69);
}

.undeploy-missing-branches-button {
    background-color: red;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

.undeploy-missing-branches-button:hover {
    background-color: darkred;
}

.new-deployment-button {
    text-decoration: none;
    display: inline-block;
    padding: 10px;
    background-color: green;
    color: white;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-align: center;
    float: right;
}

.new-deployment-button:hover {
    background-color: darkgreen;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* The visual spinner is provided by Bootstrap's .spinner-border inside the .loader-container. */

.messages {
    margin: 1rem auto;
    max-width: 800px;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Add to your CSS file or inside a <style> block */
.icon-20 {
    width: 20px;
    height: 20px;
}