@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

h1 {
    color: #0C223F;
    font-family: 'Roboto', sans-serif;
}

.title-header {
    font-size: 30px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    color: #0C223F;
    background-clip: text;
    -webkit-background-clip: text;
}

h2.login {
    color: #0C223F;
    font-size: 45px;
    font-weight: 550;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}


header h1 {
    font-size: 50px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    color: #0C223F;
    background-clip: text;
    -webkit-background-clip: text;
  }

.home-container {
    margin-top: 150px;
    margin-left: 15%;
    margin-right: 15%;
    width: 70%;
    align-items: center;
    display: flex;
    justify-content: space-around;
    flex-direction: row;
}


body, html {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: white;
    color: #343434;
}

.container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.header {
    background-color: #0C223F;
    color: white;
    height: 85px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo {
    width: 180px;
    height: 90px;
    position: absolute;
    left: 0;
    margin-left: 3%;
}


.title {
    position: absolute;
    left: 46%;
    text-align: center;
    margin: 0;
}

.title-link {
    outline: none;
    text-decoration: none;
    color: white;
}

.navbar {
    position: absolute;
    left: 85%;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 8px;
    padding: 8px 8px;
}

.navbar a.active,
.navbar a:hover {
    background-color: #0c223f6b;
    border-radius: 5px;
}


.login-block {
    background-color: #0C223F;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 400px;
    text-align: center;
    margin:  100px auto; /* Add this line to center the block */
}

.login-block h2.login {
    margin-bottom: 20px;
    color: white;
    font-size: xx-large;
    font-weight: bold;
}

.form-control1, .form-control2 {
    width: 100%;
    padding: 10px;
    margin: 0 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-control1::placeholder, .form-control2::placeholder {
    color: #999;
}

.login-button {
    background-color: #b59f32;
    color: white;
    font-size: large;
    font-weight: bold;
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 65%;
    cursor: pointer;
    margin-top: 50px;
}

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


.create-button {
    background-color: #0C223F;
    border-radius: 12px;
    font-size: 15px;
    text-align: center !important;
    color: white !important;
    font-family: 'Roboto', sans-serif;
    padding: 8px 24px;
    border: 2px solid #343a40;
    margin-top: 20px;
}

.create-button:hover {
    background-color: rgba(0, 53, 89, 0.695)
}

.list-table {
    width: 90%;
    margin-left: 5%;
    border-collapse: collapse;
}

.list-table td {
    border: 1px solid #000;
    padding: 10px;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
}

.list-table th {
    padding: 15px;
    font-size: 18px;
    text-align: center;
    vertical-align: center;
    font-weight: bold;
    color: white;
    background-color: #0C223F;
    border: 1px solid #000;
}

/* Modal Container */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: 100px auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    height: 44%;
    width: 80%; /* Could be more or less depending on screen size */
    max-width: 900px; /* Optional max width for larger screens */
    border-radius: 8px; /* Rounded corners */
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Form field styling */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input {
    padding: 8px;
    width: 100%;
    max-width: 400px; /* Optional, restricts the input field width */
    box-sizing: border-box;
}

.form-group input[type="file"] {
    padding: 0;
}


.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: bold;
}

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

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

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
    background-color: #0C223F;
    padding: 15px 25px;
    border-radius: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.pagination-button {
    background-color: white;
    color: #0C223F;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid white;
    transition: all 0.2s ease-in-out;
}

.pagination-button:hover {
    background-color: #e6e6e6;
    border-color: #ccc;
}

.pagination-info {
    color: white;
    font-weight: bold;
}

.timeline-container {
    border: 1px solid #ccc;
    padding: 10px;
    white-space: nowrap;
    margin-right: 5%;
}

.timeline {
    position: relative;
    width: 100%;
    min-width: 1000px;
}

.time-marker-row {
    display: flex;
    position: relative;
    margin-left: 150px;
    padding-bottom: 10px;
}

.time-marker {
    width: 85px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    border-right: 1px solid #3b3434;
}

.plane-row {
    position: relative;
    height: auto;
    margin-bottom: 10px;
}

.plane-label {
    position: absolute;
    left: 0;
    top: 0;
    width: 160px;
    font-weight: bold;
    background-color: #f0f0f0;
    text-align: center;
    padding: 2px;
    border: 1px solid #ccc;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalment */
    align-items: center;     /* centra horitzontalment */
    text-align: center;
}

.plane-label.potential-alert {
    border: 2px dashed red;
}

.row-content {
    margin-left: 160px;
    position: relative;
    height: auto;
    min-height: 20px;
}

.assignment-box {
    position: absolute;
    height: 40px;
    font-size: 12px;
    border-radius: 3px;
    text-align: center;
    overflow: hidden;
    color: #000;
    border: 2px solid black;
    /* NOVES PROPIETATS PER CENTRAT */
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalment */
    align-items: center;     /* centra horitzontalment */
    text-align: center;

}

.stripes {
    background-image: repeating-linear-gradient(
        45deg,
        coral,
        coral 2px,
        transparent 1px,
        transparent 20px
    );
    background-size: 100% 100%;
}
