body {
    font-size: .875rem;
    min-width: 1150px;
}

.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

#content {
    position: absolute;
    top: 80px;
    right: 10px;
    bottom: 15px;
    overflow-y: auto;
}

#div-logo-stunned{
    background-color: #24274f !important;
}

#logo-stunned {
    height: 50px;
}

#logo-deustotech {
    height: 25px;
}

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    text-align: center;
    color: #5d5d58;
    font-size: 11px;
    z-index: 999999;
    padding-top: 8px;
    border-width: 1px;
    border-color: #e8e8e6;
    border-top-style: outset;
}

#eu-flag {
    height: 25px;
    margin-right: 20px;
}

#page-title {
    text-align: center;
    color: #24274f;
    font-size: 25px;
}

/* Action Buttons */
#action-buttons button {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    transition: all 0.3s ease;
}

#action-buttons button:hover {
    background-color: #f8f9fa;
    border-color: #24274f;
}

#action-buttons button i {
    color: #24274f;
}

/*
* Navbar
*/

.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .form-control {
    padding: .75rem 1rem;
    border-width: 0;
    border-radius: 0;
}

.form-control-dark {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

/*
* Utilities
*/

.border-top { border-top: 1px solid #e5e5e5; }
.border-bottom { border-bottom: 1px solid #e5e5e5; }

/* 
* HOME static page
*/

.login-form {
    max-width: 600px;
    margin: auto;
}

.form-control {
    min-width: 150px;
}

#task-test-div {
    margin-top: 30px;
}

#task-test-div-title {
    color: #24274f;
    font-weight: 500;
    font-size: 16px;
}

#input-json, #result-json {
    height: 90px;
}

#launch-button {
    margin-top: 20px;
}

.result-key-label {
    font-weight: 500;
    width: 105px;
    color: #24274f;    
}

.stunned-color {
    color: #24274f; 
}

#progress-spinner {
    margin-top: 10px;
    margin-bottom: 10px;
}

.progress-color {
    color: #88881c;
}

.completed-color {
    color: #3e7338;
}

.error-color {
    color: #8c1105;
}

.timeout-color {
    color: #8c1105;
}

#task-state {
    font-weight: 500;
}

#task-progress-data {
    margin-left: 20px;
    margin-top: 20px;
}

.cursor-pointer {
    cursor: pointer;
}

.gallery-img {
    transition: transform 0.2s;
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* Modal styles */
.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
}

.modal-header .btn-close {
    padding: 1rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
}

.modal-title {
    color: #24274f;
    font-weight: 500;
}

.modal-dialog {
    margin: 1.75rem auto;
    max-height: calc(100vh - 40px - 3.5rem); /* 40px del footer, 3.5rem del margen total */
}

.modal-content {
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    overflow: auto;
    padding: 1rem !important;
}

#modal-img {
    max-height: calc(100vh - 100px - 3.5rem - 60px); /* 40px footer, 3.5rem márgenes, 60px header */
    object-fit: contain;
    width: auto;
}