/* Import Ubuntu font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Ubuntu", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    background-color: #ffffff;
}

/* Wrapper structure matching original */
.wrapper {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Header styles */
.main-header {
    position: relative;
    max-height: 100px;
    z-index: 1050;
    background-color: white;
    display: flex;
    align-items: stretch;
}

.logo-wrap {
    background-attachment: scroll;
    background-clip: border-box;
    background-color: rgb(36, 36, 36);
    background-image: none;
    background-origin: padding-box;
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-size: auto;
    box-sizing: border-box;
    color: rgb(51, 51, 51);
    font-family: "Ubuntu", sans-serif;
    font-size: 14px;
    line-height: 20px;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
    transition-behavior: normal;
    transition-delay: 0s;
    transition-duration: 0.3s;
    transition-property: width;
    transition-timing-function: ease-in-out;
    width: 210px;
    height: 89px;
    flex-shrink: 0;
}

.logo {
    line-height: 50px;
    text-align: center;
    width: 210px;
    font-family: "Ubuntu", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    overflow: hidden;
    display: block;
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    margin: 0 auto;
}

.logo-mini {
    font-weight: 300;
    font-size: 20px;
    display: none;
    background: url('/img/lightfoot-logo-collapsed.png') no-repeat center center;
    background-size: contain;
    text-indent: -9999px;
    width: 50px;
    height: 50px;
}

.logo-lg {
    font-weight: 300;
    font-size: 20px;
    background: url('/img/lightfoot-logo.png') no-repeat center center;
    background-size: contain;
    text-indent: -9999px;
    width: 180px;
    height: 69px;
    display: block;
}

.navbar {
    transition: margin-left 0.3s ease-in-out;
    margin-bottom: 0;
    margin-left: 0;
    border: none;
    min-height: 50px;
    border-radius: 0;
    flex: 1;
    position: relative;
}

.navbar-static-top {
    border-radius: 0;
    border-width: 0 0 1px;
    background-color: white;
}

/* Sidebar */
.main-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 50px;
    min-height: 100vh;
    width: 210px;
    z-index: 1040;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
    background: #242424;
}

.sidebar {
    padding-left: 0;
    padding-right: 0;
    height: 100vh;
    background: #242424;
    color: #ffffff;
    position: fixed;
    top: 0;
    bottom: 0;
    width: 210px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 89px 0 0 0;
}

.sidebar-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.sidebar-menu > li > a {
    color: #ffffff;
    display: block;
    padding: 12px 15px 12px 15px;
    text-decoration: none;
}

.sidebar-menu > li > a > i {
    width: 20px;
    margin-right: 5px;
}

/* Content wrapper */
.content-wrapper {
    background-color: #ffffff;
    z-index: 800;
    min-height: 100%;
    transition: transform 0.3s ease-in-out, margin 0.3s ease-in-out;
    margin-left: 210px;
}

/* Container styles to mimic Bootstrap without dependencies */
.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    margin-right: -15px;
    margin-left: -15px;
}

.col-sm-12 {
    width: 100%;
}

.col-md-6 {
    width: 50%;
}

.col-md-offset-3 {
    margin-left: 25%;
}

.col-sm-12,
.col-md-6 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

/* Login page specific styles */
#login-page {
    /*padding: 4rem 2rem;*/
}

#signin {
    max-width: 336px;
    margin: 0 auto;
    padding-top: 15px;
    /*padding: 2rem;*/
    /*background-color: white;*/
    /*border-radius: 4px;*/
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
}

.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    margin-bottom: 15px;
}

.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-family: "Ubuntu", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.btn-success {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
}

.btn-success:hover {
    color: #fff;
    background-color: #449d44;
    border-color: #398439;
}

.btn-lg {
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.3333333;
    border-radius: 6px;
}

.btn-block {
    display: block;
    width: 100%;
}

.text-center {
    text-align: center;
}

/* Language selector */
.language-selector {
    text-align: center;
    margin-bottom: 20px;
}

.language-selector select {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

/* Alert styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-warning {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

/* Media queries */
@media (max-width: 767px) {
    .col-md-6 {
        width: 100%;
    }
    .col-md-offset-3 {
        margin-left: 0;
    }
    .main-sidebar {
        transform: translateX(-100%);
    }
    .content-wrapper,
    .navbar {
        margin-left: 0;
    }
    .logo-wrap {
        width: 50px;
    }
    .logo-lg {
        display: none;
    }
    .logo-mini {
        display: none;
    }
    #signin {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 768px) {
    .col-sm-12 {
        float: left;
    }
    .col-md-6 {
        float: left;
    }
}

.clearfix:before,
.clearfix:after,
.row:before,
.row:after,
.container-fluid:before,
.container-fluid:after {
    display: table;
    content: " ";
}

.clearfix:after,
.row:after,
.container-fluid:after {
    clear: both;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
    max-width: 600px;
    margin: 30px auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    border: 1px solid #999;
    border-radius: 6px;
    box-shadow: 0 3px 9px rgba(0,0,0,.5);
    background-clip: padding-box;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    min-height: 16.43px;
}

.modal-title {
    margin: 0;
    line-height: 1.42857143;
    font-size: 18px;
}

.modal-body {
    position: relative;
    padding: 15px;
}

.modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
}

.close {
    float: right;
    font-size: 21px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .2;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.close:hover {
    opacity: .5;
}

.btn-info {
    color: #fff;
    background-color: #5bc0de;
    border-color: #46b8da;
}

.btn-info:hover {
    color: #fff;
    background-color: #31b0d5;
    border-color: #269abc;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Cookie Warning Styles */
.cookie-warning {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #cccccc;
    padding: 8px;
    z-index: 1060;
    transition: transform 1s ease-in-out;
}

.cookie-warning.hidden {
    transform: translateY(100%);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
}

.cookie-text {
    flex: 1;
    min-width: 200px;
}

.cookie-btn {
    margin: 0 5px;
    flex-shrink: 0;
}

.btn-secondary {
    color: #fff;
    background-color: #999;
    border-color: #999;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #777;
    border-color: #777;
}

/* Hamburger menu styles */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: #888888;
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    left: 10px;
    top: 30%;
    transform: translateY(-50%);
}

/* Updated responsive design for screens under 800px */
@media (max-width: 799px) {
    .main-header {
        flex-direction: column;
        max-height: none;
    }
    
    .logo-wrap {
        width: 100% !important;
        background-position: center !important;
        text-align: center;
    }
    
    .logo-lg {
        display: block !important;
        margin: 0 auto;
    }
    
    .navbar {
        margin-left: 0 !important;
        position: relative;
        top: 0;
        z-index: 1000;
        background-color: #fff;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .hamburger-menu {
        display: inline-block;
        position: absolute;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        color: #888888;
    }
    
    .main-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .main-sidebar.show {
        transform: translateX(0);
    }
    
    .content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        margin-bottom: 10px;
    }

    .sidebar-menu {
        padding-top: 140px;
    }
}
