﻿/*
    iTrackHockey Modern Portal
    Phase 1: application shell
*/

/* =========================================================
   GLOBAL APPLICATION SHELL
   ========================================================= */

html {
    background: #eef3f8;
}

body {
    background: #eef3f8;
    color: #44546a;
    max-width: none;
    margin: 0;
    padding-bottom: 0;
    box-shadow: none;
    font-family: 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}


/* =========================================================
   TOP HEADER
   ========================================================= */

#topnav {
    max-width: none;
    background: #0755a5;
    box-shadow: 0 2px 10px rgba(23, 43, 77, 0.10);
}

    #topnav .topbar-main {
        background: #0755a5;
        min-height: 88px;
    }

        #topnav .topbar-main > .container {
            width: 100%;
            max-width: none;
            padding-left: 28px;
            padding-right: 28px;
        }

        #topnav .topbar-main .logo {
            margin-top: 10px;
            margin-bottom: 10px;
        }

            #topnav .topbar-main .logo img {
                max-height: 68px !important;
                width: auto;
            }

        #topnav .topbar-main .nav > li > a {
            line-height: 88px;
            padding-left: 18px;
            padding-right: 18px;
        }

            #topnav .topbar-main .nav > li > a i {
                font-size: 20px;
            }


    /* =========================================================
   HEADER SETTINGS MENU
   ========================================================= */

    #topnav .dropdown-menu {
        border: 0;
        border-radius: 8px;
        box-shadow: 0 8px 28px rgba(23, 43, 77, 0.16);
        padding: 8px 0;
    }

        #topnav .dropdown-menu > li > a {
            padding: 9px 18px;
            color: #344563;
        }

            #topnav .dropdown-menu > li > a:hover {
                background: #f3f7fb;
                color: #0755a5;
            }


/* =========================================================
   GOOGLE AD AREA
   Keep existing functionality, only reposition it.
   ========================================================= */

.google-ads {
    margin-top: 18px !important;
}


/* =========================================================
   PAGE AREA
   ========================================================= */

.wrapper {
    padding-top: 106px !important;
    min-height: calc(100vh - 88px);
}

    .wrapper > .container {
        width: 100%;
        max-width: none;
        padding-left: 28px;
        padding-right: 28px;
    }

.container-margin {
    margin-bottom: 30px;
}


/* =========================================================
   EXPIRY
   ========================================================= */

.expiry_date {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #7a8799;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}


/* =========================================================
   MAIN CONTENT CARD
   ========================================================= */

.card-box {
    background: #ffffff;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(23, 43, 77, 0.04);
    padding: 26px;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.breadcrumb {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 22px;
    color: #68778c;
    font-size: 13px;
    font-weight: 600;
}

    .breadcrumb a {
        color: #0755a5;
    }

        .breadcrumb a:hover {
            color: #003f80;
        }


/* =========================================================
   PAGE TITLES
   ========================================================= */

.header-title {
    color: #102a4c;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #102a4c;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    border-radius: 6px;
    font-weight: 600;
}

.btn-md {
    padding: 9px 18px;
}

.btn-default,
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active,
.btn-default.focus {
    background-color: #0969d7 !important;
    border-color: #0969d7 !important;
}

    .btn-default:hover,
    .btn-default:focus {
        background-color: #075cbc !important;
        border-color: #075cbc !important;
    }


/* =========================================================
   FORM CONTROLS
   ========================================================= */

.form-control {
    height: 40px;
    border: 1px solid #d7e0ea;
    border-radius: 6px;
    box-shadow: none;
    color: #344563;
}

    .form-control:focus {
        border-color: #0969d7;
        box-shadow: 0 0 0 2px rgba(9, 105, 215, 0.10);
    }


/* =========================================================
   TABLE BASE
   ========================================================= */

.table {
    color: #44546a;
}

    .table > thead > tr > th {
        color: #344563;
        font-weight: 700;
        border-bottom: 1px solid #dfe7ef;
    }

    .table > tbody > tr > td {
        border-top: 1px solid #edf1f5;
        vertical-align: middle;
    }


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: transparent;
    color: #8a97a8;
    border: 0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {

    #topnav .topbar-main > .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    #topnav .topbar-main .logo img {
        max-height: 58px !important;
    }

    .wrapper {
        padding-top: 96px !important;
    }

        .wrapper > .container {
            padding-left: 14px;
            padding-right: 14px;
        }

    .card-box {
        padding: 18px;
    }
}

/* =========================================================
   MODERN LEFT SIDEBAR
   ========================================================= */

.modern-sidebar {
    position: fixed;
    top: 88px;
    bottom: 0;
    left: 0;
    width: 250px;
    background: #073664;
    color: #ffffff;
    z-index: 1020;
    overflow-y: auto;
    padding: 20px 0;
    box-shadow: 3px 0 12px rgba(23, 43, 77, 0.06);
}

.modern-sidebar-section {
    margin-bottom: 18px;
}

.modern-sidebar-label {
    color: #829ebc;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 10px 28px 8px 28px;
}

.modern-nav-item,
.modern-nav-subitem {
    text-decoration: none !important;
}

.modern-nav-item {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 26px;
    color: #eef6ff !important;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease;
}

    .modern-nav-item:hover,
    .modern-nav-item:focus {
        background: rgba(255,255,255,0.07);
        color: #ffffff !important;
    }

    .modern-nav-item i {
        width: 24px;
        margin-right: 14px;
        font-size: 19px;
        text-align: center;
    }

.modern-nav-parent {
    background: #086bd8;
    color: #ffffff !important;
}

.modern-nav-subitem {
    display: block;
    padding: 11px 28px 11px 64px;
    color: #d9e8f7 !important;
    font-size: 13px;
}

    .modern-nav-subitem:hover {
        background: rgba(255,255,255,0.06);
        color: #ffffff !important;
    }

.modern-signout {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 10px;
    padding-top: 4px;
}


/* Main portal content moves beside sidebar */

.modern-content-wrapper {
    margin-left: 250px;
}

    .modern-content-wrapper > .container {
        padding-left: 18px;
        padding-right: 28px;
    }


/* Header must also account for sidebar visually */

#topnav .topbar-main > .container {
    padding-left: 28px;
}


/* =========================================================
   SIDEBAR RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .modern-sidebar {
        width: 210px;
    }

    .modern-content-wrapper {
        margin-left: 210px;
    }

    .modern-nav-item {
        padding-left: 20px;
        padding-right: 20px;
    }

    .modern-nav-subitem {
        padding-left: 58px;
    }
}

@media (max-width: 767px) {

    .modern-sidebar {
        display: none;
    }

    .modern-content-wrapper {
        margin-left: 0;
    }

        .modern-content-wrapper > .container {
            padding-left: 14px;
            padding-right: 14px;
        }
}

/* =========================================================
   MODERN TEAMS PAGE
   ========================================================= */

.modern-team-page {
    position: relative;
    padding: 28px;
}


/* Page heading */

.modern-team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.modern-team-title {
    margin: 0;
    color: #102a4c;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.modern-team-subtitle {
    margin-top: 5px;
    color: #7a8799;
    font-size: 13px;
}


/* Add Team stays in original UpdatePanel,
   but is visually moved to upper-right */

.modern-add-team-row {
    position: absolute;
    top: 27px;
    right: 28px;
    margin: 0 !important;
    padding: 0 !important;
    width: auto;
}

    .modern-add-team-row .col-xs-6 {
        width: auto;
        float: none;
        padding: 0;
    }

    .modern-add-team-row .btn {
        width: auto !important;
        min-width: 110px;
        text-transform: none !important;
    }


/* My Teams / Opponents */

.modern-team-page #Tabs {
    max-width: 360px;
    margin: 6px auto 0;
}

    .modern-team-page #Tabs .nav-pills {
        display: flex;
        padding: 3px;
        background: #eef3f8;
        border-radius: 7px;
    }

        .modern-team-page #Tabs .nav-pills > li {
            float: none;
            flex: 1;
        }

            .modern-team-page #Tabs .nav-pills > li > a {
                margin: 0;
                padding: 8px 16px;
                border-radius: 5px;
                color: #63758a;
                background: transparent;
                font-size: 13px;
                font-weight: 600;
            }

                .modern-team-page #Tabs .nav-pills > li > a:hover {
                    background: #e2ebf4;
                    color: #0755a5;
                }

            .modern-team-page #Tabs .nav-pills > li.active > a,
            .modern-team-page #Tabs .nav-pills > li.active > a:hover,
            .modern-team-page #Tabs .nav-pills > li.active > a:focus {
                background: #ffffff;
                color: #0755a5;
                box-shadow: 0 1px 4px rgba(23,43,77,0.12);
            }


/* Show Archived */

.modern-team-page .form-check {
    margin-top: 4px;
    margin-bottom: 8px;
}

    .modern-team-page .form-check label {
        color: #7a8799;
        font-size: 12px;
        font-weight: 500;
        text-transform: none;
    }


/* Videos button */

.modern-team-page input[value="Videos"] {
    border-radius: 6px;
    text-transform: none !important;
}


/* Team tables */

.modern-team-page #teamDatatable,
.modern-team-page #opponentDatatable {
    border-collapse: separate !important;
    border-spacing: 0;
}

    .modern-team-page #teamDatatable thead th,
    .modern-team-page #opponentDatatable thead th {
        padding: 12px 10px;
        background: #f7f9fc;
        color: #53657a;
        border-top: 1px solid #e5ebf2;
        border-bottom: 1px solid #dfe7ef;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    .modern-team-page #teamDatatable tbody td,
    .modern-team-page #opponentDatatable tbody td {
        padding: 13px 10px;
        background: #ffffff;
        border-top: 0;
        border-bottom: 1px solid #edf1f5;
        vertical-align: middle;
    }

    .modern-team-page #teamDatatable tbody tr:hover td,
    .modern-team-page #opponentDatatable tbody tr:hover td {
        background: #f8fbfe;
    }


/* DataTables search */

.modern-team-page .dataTables_filter {
    margin-top: 8px;
    margin-bottom: 16px;
}

    .modern-team-page .dataTables_filter label {
        color: #7a8799;
        font-weight: 500;
    }

    .modern-team-page .dataTables_filter input {
        min-width: 230px;
        height: 38px;
        margin-left: 8px;
        padding: 6px 10px;
        border: 1px solid #d7e0ea;
        border-radius: 6px;
        box-shadow: none;
    }

        .modern-team-page .dataTables_filter input:focus {
            border-color: #0969d7;
            outline: 0;
        }


/* Team actions */

.modern-team-page .team-action-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}

    .modern-team-page .team-action-icons .team-action-link {
        display: inline-flex;
        width: 30px;
        height: 30px;
        margin: 0;
        align-items: center;
        justify-content: center;
        border: 1px solid #dce5ee;
        border-radius: 5px;
        background: #ffffff;
        color: #48627d;
        text-decoration: none;
    }

        .modern-team-page .team-action-icons .team-action-link:hover {
            background: #eef5fc;
            border-color: #b9d3ed;
            color: #0755a5;
        }

        .modern-team-page .team-action-icons .team-action-link i {
            font-size: 15px;
            line-height: normal;
        }


/* Pagination */

.modern-team-page .pagination > li > a,
.modern-team-page .pagination > li > span {
    border-color: #dce5ee;
    color: #52677e;
}

.modern-team-page .pagination > .active > a,
.modern-team-page .pagination > .active > a:hover,
.modern-team-page .pagination > .active > span {
    background: #0969d7;
    border-color: #0969d7;
    color: #ffffff;
}


/* Download spreadsheet link */

.modern-team-page a[href*="Roster-Import-Empty"] {
    color: #718198;
    font-size: 12px;
}


/* Responsive */

@media (max-width: 767px) {

    .modern-team-page {
        padding: 18px;
    }

    .modern-team-title {
        font-size: 24px;
    }

    .modern-add-team-row {
        position: static;
        margin-top: 15px !important;
    }

    .modern-team-page #Tabs {
        max-width: none;
    }

    .modern-team-page .dataTables_filter {
        text-align: left;
    }

        .modern-team-page .dataTables_filter input {
            min-width: 170px;
        }
}
