/* static/css/styles.css */
body {
    font-family: 'Tahoma', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 1000px;
}

header {
    height: 10vh;
    border-bottom: 1px solid #ddd;
    background: linear-gradient(to right, #0A1D6B 50%, #F47A00 150%);
}

footer {
    color: #666;
    padding: 20px;
    width: 100%;
    margin-top: auto;
}

.logo {
    min-width: 220px;
}

.home-title{
    font-size: 2rem;
    font-weight: bold;
    margin-top: 5px;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
}

.navbar-custom{
    color: white;
    margin-left: auto;
    margin-top: 10px;
}
.navbar-custom a{
  text-decoration: none;
  color: inherit;
}
.navbar-custom a:hover{
    text-decoration: underline;
}
.navbar-custom form:hover{
    text-decoration: underline;
}
.navbar-custom li{
    display: inline;
}
.navbar-custom button{
    all: unset;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}
.navbar-custom > nav > ul > li + li:before{
    content: " | ";
    padding: 0 5px;
}

.nav-link.nav-link {
    display: inline-block !important;
}
.nav-link.nav-link::after {
    display: none !important;
}

.dropdown-menu{
    position: absolute !important;
    left: 15px;
    transform: none;
    min-width: unset;
}

.dropdown .dropdown-menu {
  transition: opacity 0.3s ease, visibility 0s linear 0.5s;
}



.section-title{
    font-size: 2rem;
    font-weight: bold;
}

.form-title{
    font-size: 2rem;
    font-weight: bold;
    margin-top: 2rem;
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.card-body {
    padding: 30px;
}

.container {
    margin-top: 20px;
    margin-bottom: 50px;
    min-width: 650px;
    max-width: 90%;
}

.form-container{
    max-width: 60%
}


h3.card-title {
    font-size: 1.75rem;
    color: #333;
}

.form-container{
    max-width: 60%;
}
.form-card .btn-upload {
    margin-left: 0;
}

.form-control {
    border-radius: 10px;
}

.btn {
    border-radius: 10px;
    padding: 5px 10px 5px 10px;
}


@media (max-width: 767px) {
    .card {
        padding: 20px;
    }
}

.title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.text-left {
  text-align: left;
  margin: 0;
}

.btn-upload {
    border-radius: 10px;
    background-color: green;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    margin-left: 10px;
}

.btn-upload:hover {
  background-color: darkgreen;
}

/* Breadcrumb Styling */
.breadcrumb {
    font-size: 0.9em;
    margin-bottom: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}
.breadcrumb a {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    color: #666;
}
.breadcrumb span::before {
    content: "›";
    color: #aaa;
    margin: 0 6px;
    font-size: 0.9em;
}

/* Deliverable Info */
.deliverable-info {
    margin-bottom: 20px;
}

.status-select {
    padding: 10px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    outline: none;
    text-align: center;
}

.status-select:has(> option[value="1"]:checked) { background: #EFB700; }
.status-select:has(> option[value="2"]:checked) { background: #008450; color: whitesmoke}
.status-select:has(> option[value="3"]:checked) { background: #B81D13; color: whitesmoke}
.status-select:has(> option[value="4"]:checked) { background: lightgray;}

.extra-info{
    color: #666;
    font-size: 1em;
}

.extra-info a{
  text-decoration: none;
  color: inherit;
}
.extra-info a:hover{
    text-decoration: underline;
}

#deliverable-preview{
    display: inline;
    margin-bottom: 1rem;
    justify-content: center;
}
.pdf-preview{
    float: left;
    width: 100%;
}
#review-div{
    display: none;
    float: right;
    width: 42%;
    max-height: 800px;
    overflow-x: hidden;
    overflow-y: scroll;
    margin-left: 20px;
    padding-right: 15px;
}
#review-div, label{
    margin: 0.5rem 0;
}

.deliverable-versions{
    margin-top: 20px;
    float: left;
    display: block;
    width: 100%;
}

/* Comments Section */
.comments-section {
    float: left;
    margin-top: 10px;
    width: 100%;
}
.comments-list .comment {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.comment p {
    margin: 5px 0;
}
/* New Comment Form */
.new-comment-form {
    margin-top: 20px;
}
.new-comment-form h3 {
    margin-bottom: 10px;
}
.comment-form {
    display: flex;
    flex-direction: column;
}
.comment-fields{
    display: flex;
    flex-direction: row;
}
.comment-form textarea {
    width: 85%;
    padding: 10px;
    font-size: 1em;
    margin-bottom: 10px;
    resize: none;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.btn-attach {
    width: 15%;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 10px 10px 0;
}
.btn-attach:hover {
    background-color: #e0e0e0;
}
.comment-form input[type="file"] {
    display: none;
}


.btn-generic {
    align-self: flex-start;
    background-color: #0056b3;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
}

.btn-generic:hover {
    background-color: #004494;
    color: white;
}

#deliverablesTable_wrapper .bottom, #usersTable_wrapper .bottom, #reviewsTable_wrapper .bottom, #datasetsAdminTable_wrapper .bottom {
    display: flex;
    justify-content: space-between;
}

#deliverablesTable_info, #usersTable_info{
    font-size: 12px;
    padding-top: 8px;
}

.table-container {
    margin-top: 15px;
    margin-bottom: 15px;
}

.status-tag{
    border-radius: 5px;
    border: 1px solid lightgray;
    text-align: center;
    padding: 8px;
}

.small-tag{
    min-width: 40px;
    width: 32%;
    display: inline-block;
}

#dt-length-0{
    margin-right: 5px;
}

.user-nav {
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-bottom: 1px solid lightgray;
    width: 100%;
    margin-top: -1px;
}
.user-nav .nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.user-nav .nav-link {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 10px 40px;
    border-right: 1px solid lightgray;;
    transition: color 0.3s, background-color 0.3s;
}
.nav-link.active,
.nav-item.active .nav-link {
    background-color: #007bff;
    color: white;
}

.main-buttons a{
    padding: 12px 20px;
}

.main-buttons select{
    width: 15vh;
}

#alertBox {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 20px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.5s, opacity 0.5s linear;
}

#alertBox.visible {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.5s linear;
}


.user_info_table > tr, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}
.user_info_table td:first-child {
    background-color: #d0e7ff;
    font-weight: bold;
    width: 30%
}
.user_info{
    margin-top: 20px;
}
.user_info > h3{
    margin-left: 10%;
}
.user_info > section > p{
    margin-left: 10%;
}
.user_info_table {
    background-color: #f4f4f4;
    width: 80%;
    border-collapse: collapse;
    margin: 0 auto;
}

.video-item{
    min-width: 900px;
    margin-top: 2rem;
    background: linear-gradient(white, white) padding-box,
              linear-gradient(to right, #0A1D6B 50%, #F47A00 150%) border-box;
    border-radius: 20px;
    border: 4px solid transparent;
    padding: 1rem;
    display: flex;
}
.video-description{
    padding-left: 2rem;
    padding-right: 1rem;
    padding-top: 4rem;
}
.video-description div{
    padding-top: 2rem;
}

.video-item video{
    max-width: 650px;
    border-radius: 15px;
}

.project-card {
    border-radius: 10px;
    text-decoration: none;
    opacity: 0;
    animation: scale-up-center-normal 0.6s ease-out forwards ;
    display: block;
    color: black;
}
.project-card .project-title{
    aspect-ratio: 16 / 9;
    background: linear-gradient(to bottom right, #0A1D6B 30%, #F47A00 150%);
    border-radius: 10px;
    color: white;
}
.project-title:hover{
    background: #1A74B5;
    transform: scale(0.95);
}

#searchProject{
    width: 20%;
    height: 50%;
    margin-top: 8px;
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid #aaa;
}

#callSelector{
    background: white;
    border-radius: 3px;
    border: 1px solid #aaa;
    width: 120px;
    display: block;
    padding: 4px 8px;
}

@keyframes scale-up-center-normal {
  0% { transform: scale(0); opacity: 0; display: block }
  100% { transform: scale(1); opacity: 1; }
}

.deliverable-card {
    width: 300px;
    height: 400px;
}
.deliverable-card{
    animation: scale-up-center-normal 0.6s forwards ease-out;
}

.card-face {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0px;
    border-radius: 10px;
    background: linear-gradient(to bottom right, #0A1D6B 30%, #F47A00 150%);
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    transition: transform 0.6s ease, opacity 0.6s ease;
    text-align: center;
}
.front {
    transform: rotateY(0deg);
}
.back {
    transform: rotateY(180deg);
    opacity: 0;
    background: #1A74B5;
    flex-direction: column;
}
.deliverable-card:hover .front {
    transform: rotateY(180deg);
    opacity: 0;
}
.deliverable-card:hover .back {
    transform: rotateY(360deg);
    opacity: 1;
}

.deliverable-card .card-face p {
    margin: 30px;
}

.deliverable-front-1{
    background: #0F1C6A;
}
.deliverable-front-2{
    background: #DF8033;
}
.deliverable-front-3{
    background: #4EAB96;
}

.deliverable-back-1{
    background: #0F1C6A;
}
.deliverable-back-2{
    background: #DF8033;
}
.deliverable-back-3{
    background: #4EAB96;
}