﻿:root {
    --bgColour: #F1F1F1;
    --linkHoverColour: #0a58ca;
    
    --company-green: #38B54A;
    --lightGrayBg: #fafafa;
    --grayBg: #EBEBEB;
    --lightTxt: #3C4858;
    --lightGrayTxt: #999999;
    --boxShadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    height: 100%;
    display: flex;
    background-color: var(--bgColour);
}

.content {
    width: 100%;
    padding: 0 20px;
    margin-left: 16%;
}

/* Global Elements */

a {
    color: unset;
    text-decoration: none;
}

a:hover {
    color: var(--linkHoverColour)
}

.hrefBtn {
    padding: 6px 12px;
    margin: 0 3px;
    color: black;
    background-color: white;
    text-decoration: none;
    border: 1px solid var(--grayBg);
    border-radius: 8px;
    box-shadow: var(--boxShadow);
    transition: .2s all ease;
}

    .hrefBtn:hover {
        cursor: pointer;
        color: var(--linkHoverColour);
    }

button:hover {
    transition: .04s all ease;
}

.dynamic-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visibleLink {
    color: var(--linkHoverColour) !important;
}

.hidden {
    display: none;
}

.hideDesktop {
    display: none;
}

@media (max-width: 572px) {
    .hideDesktop {
        display: unset;
    }
}

/* Sidebar */

.sidebar {
    width: 16%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    background-color: white;
    box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.sidebarLogo {
    width: 100%;
    padding: 5px;
    margin: 15px 0;
}

.topMenu {
}

.menuItemHref {
    color: var(--lightTxt);
    text-decoration: none;
}

.menuItem {
    padding: 10px 10px;
    display: flex;
    border-top: 1px solid #d3d3d5;
}

    .menuItem:hover {
        color: var(--linkHoverColour);
        background-color: var(--grayBg);
        transition: .2s all ease;
    }

.menuItemLogo {
    width: 25px;
}

.menuItemTitle {
    font-size: 1.1em;
    margin: auto 10px;
}

/* Sidebar Logged In User*/

.bottomMenu {
    position: relative;
    width: 100%;
}

.loggedInDiv {
    width: 100%;
    margin: 15px 10px;
    position: relative;
    display: flex;
    align-items: center;
}

.loggedInImg {
    width: 35px;
}

.loggedInUser {
    font-size: 1em !important;
    padding: 5px;
    margin: 0 5px 0 10px;
}

/* Global Form */

.buttonContainer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.mainForm {
    margin: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.formTitle {
}

.formMedia {
    width: 300px;
    height: 300px;
    padding: 15px;
    object-fit: contain;
    background-color: white;
    border: 1px solid var(--lightGrayBg);
    border-radius: 8px;
}

.inputDiv {
    width: 250px;
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.inputLabel {
    font-size: 1rem;
    font-weight: bold;
    color: var(--lightTxt);
    margin-bottom: 5px;
    display: block;
}

.confirmLabel {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--lightTxt);
    margin-bottom: 5px;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.confirmField {
    display: block;
    margin: 20px 0;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 16px;
}

.inputField {
    display: block;
    margin: 20px 0;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 16px;
    transition: .04s all ease;
}

    .inputField:hover {
        border-color: #888;
    }

    .inputField:focus {
        border-color: #555;
    }

.buttonContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgotPassword {
    margin: 10px 10px;
}

.submitBtn {
    width: fit-content;
    padding: 5px 20px;
    margin-left: 10px;
    border: 1px solid #d3d3d5;
    border-radius: 3px;
}

/* Dashboard */

.dashboardPageTitle {
    margin: 15px 10px;
}

.dashboardTopRow {
    margin: 40px 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.dashboardTopItem {
    width: 20%;
    padding: 10px 25px;
    background-color: white;
    border: 1px solid var(--grayBg);
    border-radius: 8px;
    box-shadow: var(--boxShadow);
}

    .dashboardTopItem p {
        margin-bottom: 0px;
        color: var(--lightGrayTxt);
    }

    .dashboardTopItem h5 {
    }

    .dashboardTopItem hr {
        margin-top: 14px;
        margin-bottom: 8px;
    }

.dashboardTopItemAdd {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

    .dashboardTopItemAdd img {
        height: 16px;
        margin-right: 4px;
    }

    .dashboardTopItemAdd a {
        color: var(--linkHoverColour);
        text-decoration: none;
    }

.privacyStatement {
    position: absolute;
    padding-left: 5px;
    padding: 10px;
    bottom: 5px;
}

.privacyBtn {
    padding: 6px 12px;
    margin: 0 3px;
    color: black;
    background-color: white;
    text-decoration: none;
    border: 1px solid var(--grayBg);
    border-radius: 8px;
    box-shadow: var(--boxShadow);
    transition: .2s all ease;
}

    .privacyBtn:hover {
        cursor: pointer;
        color: var(--linkHoverColour);
    }

/* Page Header */

.pageTitle {
    width: 70%;
    margin: 0 10px;
    text-align: center;
}

.pageRow {
    padding: 0 15px;
    margin: 20px 10px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pageLeftBtns {
    display: flex;
    align-items: center;
}

    .pageLeftBtns a {
        margin: 0 6px;
    }

.pageRightBtns {
    display: flex;
    align-items: center;
}

    .pageRightBtns a {
        margin: 0 6px;
    }

.pageDivider {
    margin-top: 20px;
    margin-bottom: 10px;
}

/* devices */

.devicesDiv {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 20px;
}

.deviceDiv {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 8px;
}

.deviceTitle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0;
}

.devicePlaylist {
    margin: 15px 0;
}

.deviceActions {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

    .deviceActions a {
        white-space: nowrap;
    }

    .deviceActions i {
        font-size: 1.2em;
        padding: 8px 12px;
        margin: 0 5px;
        color: black;
        background-color: white;
        text-decoration: none;
        border: 1px solid var(--grayBg);
        border-radius: 8px;
        box-shadow: var(--boxShadow);
        transition: .2s all ease;
    }

        .deviceActions i:hover {
            cursor: pointer;
            color: var(--babypink);
        }

/* Users Index Page */
.usersTable {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: var(--boxShadow);
}

    .usersTable thead tr {
        background-color: var(--lightGrayBg);
        color: var(--lightTxt);
        text-align: left;
        font-weight: bold;
    }

    .usersTable th, .usersTable td {
        padding: 12px 15px;
        border: 1px solid var(--grayBg);
    }

    .usersTable tbody tr {
        border-bottom: 1px solid var(--grayBg);
    }

        .usersTable tbody tr:nth-of-type(even) {
            background-color: var(--lightGrayBg);
        }

        .usersTable tbody tr:last-of-type {
            border-bottom: 2px solid var(--lightGrayBg);
        }

        .usersTable tbody tr:hover {
            background-color: var(--lightTxt);
            color: white;
            transition: .2s all ease;
        }

/* User Options Buttons Styling */

.usersOptions a {
    padding: 6px 12px;
    color: black;
    background-color: white;
    text-decoration: none;
    border: 1px solid var(--grayBg);
    border-radius: 8px;
    box-shadow: var(--boxShadow);
    white-space: nowrap;
    transition: .2s all ease;
}

    .usersOptions a:hover {
        color: var(--linkHoverColour);
    }

.selectDropdown {
    padding: 6px 12px;
    color: black;
    background-color: white;
    border: 1px solid var(--grayBg);
    border-radius: 8px;
    box-shadow: var(--boxShadow);
    transition: .2s all ease;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 200px; /* Adjust the width as needed */
}

    .selectDropdown:hover {
        cursor: pointer;
        color: var(--linkHoverColour);
    }

.fileInput {
    display: none;
}

.customFileUpload {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    color: black;
    background-color: white;
    text-decoration: none;
    border: 1px solid var(--grayBg);
    border-radius: 8px;
    box-shadow: var(--boxShadow);
    transition: .2s all ease;
    cursor: pointer;
}

    .customFileUpload:hover {
        color: var(--linkHoverColour);
    }