@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f0f0f0; /* Gray background */
    margin: 0; /* Remove default margins */
    padding: 0; /* Remove default padding */
    min-height: 100%; /* Ensure it covers the full height */

}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f0f0f0;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main-content-wrapper {
    flex: 1 0 auto;
    width: 100%;
}

.content {
    max-width: 600px; /* Limit the width of the content */
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
}

.row {
    display: block; /* Changed from flex to block for stacking vertically */
    margin-right: 0; /* Adjusted margin for better alignment */
    margin-left: 0; /* Adjusted margin for better alignment */
}

.col-md-4 {
    width: 100%; /* Full width for better control and to fit container */
    padding-right: 15px;
    padding-left: 15px;
}

.card-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.card {
    width: 400px; /* Set the width of the card */
    height: 400px; /* Set the height of the card */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 10px;
    border: 2px solid black; /* Set border to solid black */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow */
    background-color: #ced4da; /* Set background color of the card */
    transition: background-color 0.3s ease; /* Smooth transition for background color */
}

    /* Change the background color to orange on hover */
    .card:hover {
        background-color: cornflowerblue;
    }

/* Style the card body content */
.card-body {
    text-align: center;
}

/* Style the card title */
.card-title {
    margin-bottom: 20px;
    font-weight: bold;
}

/* Style the card text */
.card-text {
    color: #666;
}

/* Style the card button */
.btn {
    margin-top: auto; /* Push the button to the bottom */
    background-color: #008000; /* Dark green button color */
    border-color: #006400; /* Dark green button border color */
}

    /* Change button text color to white */
    .btn,
    .btn:hover {
        color: #fff;
    }




.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5Lj)
}

.light-cadetblue-text {
    color: cadetblue;
}

.input-group-textfortelephone {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.form-control[type=file] {
    overflow: hidden;
}

.form-control[type=file]:not(:disabled):not([readonly]) {
    cursor: pointer;
}

.modern-button {
    color: #fff;
    background-color: #2d3748;
    border: none;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 16px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modern-button i {
    margin-right: 8px;
}

.modern-button:hover {
    background-color: #4a5568;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modern-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Define custom background color for the body */
body.custom-background {
    background-color: #f0f0f0; /* Gray background */
    color: #000000; /* Text color */
}

    /* Adjust the background color of the body when hovered */
    body.custom-background:hover {
        background-color: #f0f0f0; /* Keep consistent on hover */
    }

/* Style the "Log in" link */
.login-link {
    color: white;
    font-weight: bold;
}

.useful-links {
    position: fixed; /* Set position to fixed */
    bottom: 10px; /* Distance from the bottom of the screen */
    left: 10px; /* Distance from the left of the screen */
}

.gray-background {
    background-color: #f0f0f0; /* Gray background */
    min-height: 100vh; /* Minimum height is the viewport height, but can expand */
    background-repeat: repeat;
    background-size: cover;
}

.backgroundimage-page {
    background-image: url('../Images/EKPA_BACKGROUND_FP.png');
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: start;
    align-items: start;
    height: 100vh;
}

/* --- Shared styling restored from legacy MainLayout for role dashboards --- */
.row-dark-gray {
    background-color: #343a40;
    color: white;
    padding: 10px;
    border-radius: 5px;
}

.row-dark-gray .form-label {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #fff8dc;
    display: block;
}

.content-area {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    right: 0;
    top: 20px;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-bordered {
    border: 1px solid #dee2e6;
}

div.table-bordered {
    background-color: #f0f0f0;
}

.nav-tabs .nav-link {
    color: #333333;
    font-weight: bold;
    margin-bottom: -1px;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    background: transparent;
    border: 1px solid transparent;
}

.nav-tabs .nav-link.active {
    color: #fff;
    background-color: #0d6efd;
    border-color: #dee2e6 #dee2e6 #0d6efd;
}

.nav-tabs .nav-link:not(.active):hover {
    color: #555555;
    border-color: #e9ecef #e9ecef #dee2e6;
}

button.btn.btn-link {
    background-color: #0d6efd;  /* primary blue */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

button.btn.btn-link:hover {
    background-color: #0b5ed7;
    color: white;
}

/* Calendar styles (Company/Professor events) */
.calendar-section {
    padding: 20px;
    margin-top: 20px;
    position: relative;
    height: auto;
    min-height: 430px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 12px;
    border: 2px solid #000000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    padding-bottom: 30px;
}

.calendar {
    position: relative;
    top: 0 !important;
    left: 0 !important;
    margin-top: 10px;
    width: 100%;
    height: auto;
    overflow: visible;
    box-sizing: border-box;
    background-color: #ffffff;
    padding: 15px;
    border-top: 1px solid #ddd;
    color: #333;
}

.calendar-header h2 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    text-transform: capitalize;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 0;
    text-align: center;
}

.day-header {
    font-weight: 700;
    background-color: transparent;
    color: #555;
    padding: 8px 0;
    font-size: 0.9em;
    text-transform: uppercase;
}

.day-cell {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    padding: 6px 2px;
    min-height: 65px;
    transition: all 0.2s ease;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.day-cell span {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95em;
}

.day-cell:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.day-cell.empty-cell {
    border: none;
    background: transparent;
    cursor: default;
}

.day-cell.today {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
}

.day-cell.highlighted {
    border: 2px solid #000;
}

.event-indicators {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.indicator-pill {
    font-size: 0.65em;
    padding: 2px 4px;
    border-radius: 4px;
    width: 92%;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.pill-company {
    background-color: #e0f2f1;
    color: #00695c;
    border: 1px solid #b2dfdb;
}

.pill-professor {
    background-color: #f3e5f5;
    color: #6a1b9a;
    border: 1px solid #e1bee7;
}

.calendar-legend {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85em;
    color: #555;
    justify-content: center;
}

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

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.today-legend { background-color: #007bff; }

.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 0 5px;
}

.pagination .btn {
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.9em;
    transition: background 0.2s;
}

.pagination .btn:hover {
    background-color: #eee;
}

.news-heading {
    color: orange;
    font-size: 20px;
    font-weight: 700;
}

.black-text {
    color: #000;
}

.select-chevron-overlay .input-group-append {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.select-chevron-overlay .input-group-text {
    background: transparent;
    border: none;
    padding: 0;
    pointer-events: none;
}

.select-chevron-overlay .form-control,
.select-chevron-overlay .form-control-sm {
    padding-right: 2.5rem;
}

.select-chevron-overlay .fas.fa-chevron-down {
    color: #000;
}

.shake {
    animation: shake 0.5s;
}

.error {
    border: 1px solid red;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* FOOTER SHARED STYLES */
.lp-footer {
    background: #0f2044 !important;
    color: #94a3b8 !important;
    padding: 5px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    width: 100% !important;
    box-sizing: border-box;
    flex-shrink: 0;
    z-index: 100;
}

.lp-footer span {
    font-weight: 500;
}

.lp-footer a {
    color: #7dd3fc !important;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s;
}

.lp-footer a:hover {
    color: #38bdf8 !important;
}

@media (max-width: 640px) {
    .lp-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 20px;
    }
    .lp-footer a {
        margin: 0 10px;
    }
}
