﻿/* Move down content because we have a fixed navbar that is 50px tall */
html,
body {
    margin: 0;
    padding: 0;
}

/*top bar*/
.resizable-text-container {
    height: 40px;
    /* Example height, adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.resizable-text {
    white-space: nowrap;
    color: #dedede;
    display: inline-block;
}

.gradient-background {
    background: linear-gradient(180deg, #f8f9fa, #e9ecef, #f8f9fa);
    /* Adjust the gradient colors and direction as needed */
}



/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.container-fluid {
    height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* Arrange containers vertically */
    overflow: hidden;
    /* Prevent body scroll */
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .jumbotron {
        margin-top: 20px;
    }

    .body-content {
        padding: 0;
    }
}

/* horizontal panel*/
.panel-container {
    flex: 1;
    /* Make bottom container fill remaining space */
    display: flex;
    overflow: hidden;
    border: 2px solid #9A9B9D;
}

.panel-left {
    width: 250px;
    /* Set fixed width for left container */
    padding: 5px 2px 5px 2px;
    display: flex;
    flex-direction: column;
}

.menu {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
}

.menu a {
    color: #333;
    text-decoration: none;
}

.menu a:hover {
    color: #007bff;
}

.toc-content {
    flex: 1;
    /* Takes up the remaining space */
    padding: 10px;
    /* Padding for the content */
    overflow-y: auto;
    /* Scrollable content if it overflows */
}

.panel-right {
    flex: 1;
    /* resizable */
    width: 100%;
}

.panel-right iframe {
    width: 100%;
    height: 100%;
}

.splitter {
    flex: 0 0 auto;
    width: 5px;
    background: url(../Content/Images/vsplitter.gif) center center no-repeat lightsteelblue;
    min-height: 200px;
    cursor: col-resize;
}


/*.alert-danger {
    background-color: #dc3545;
    border-color: #c82333;
    color: #fff;
}

    .alert-danger h4 {
        color: inherit;
    }*/

/* =========================================================
   KMETSNAVI LOGIN PAGE - KIPOSWEB Style
   ========================================================= */

/* Login Zone - Light pattern background like KIPOSWEB */
.kmn-login-zone {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem 1rem !important;
    background-color: #f8f9fa !important;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a574' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
}

/* Login Card - White card with shadow */
.kmn-login-card {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 1rem !important;
    max-width: 480px !important;
    width: 100% !important;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Override max-width for form inputs inside login */
.kmn-login-card input,
.kmn-login-card select,
.kmn-login-card textarea {
    max-width: 100% !important;
}

/* Ensure text is visible */
.kmn-login-card,
.kmn-login-card * {
    color: #212529;
}

.kmn-login-card .text-muted {
    color: #6c757d !important;
}

.kmn-login-card .form-label {
    color: #212529 !important;
}

.kmn-login-card .form-control {
    background-color: #fff !important;
    border-color: #ced4da !important;
    color: #212529 !important;
}

/* Button text white */
.kmn-login-card .btn-primary {
    color: #ffffff !important;
}

/* =========================================================
   ACCESS AGREEMENT DIALOG - RESPONSIVE
   ========================================================= */

/* Desktop: Original Layout */
.access-agreement-container {
    box-sizing: border-box;
    width: 800px;
    margin-left: 200px;
    margin-top: 100px;
}

/* Tablet - Centered layout */
@media (max-width: 1024px) {
    .access-agreement-container {
        width: 90%;
        max-width: 800px;
        margin: 50px auto;
        padding: 0 15px;
    }
}

/* Mobile - Stacked layout */
@media (max-width: 768px) {
    .access-agreement-container {
        width: calc(100% - 20px);
        margin: 20px auto;
        padding: 0 10px;
    }

    .access-agreement-container table td {
        display: block;
        width: 100% !important;
        padding: 8px 5px;
    }

    .access-agreement-container table tr td:first-child {
        background-color: #f5f5f5;
        padding-bottom: 2px;
    }

    .access-agreement-container table tr td:last-child {
        padding-left: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid #eee;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .access-agreement-container {
        width: calc(100% - 10px);
        margin: 10px auto;
        padding: 0 5px;
        font-size: 14px;
    }
}