@import url('login.css');
@import url('reset-password.css');

/* === HEADER === */
.header-bar {
    width: 100%;
    background: #fff;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #b5b5b5;
    box-shadow: 0 4px 18px 0 rgba(120,120,120,0.07);
    padding: 0 30px 0 12px;
    position: relative;
    z-index: 10;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-left img {
    height: 67px;
    width: auto;
    margin-right: 6px;
}
.header-title {
    font-size: 13px;
    font-weight: normal;
    color: #999999;
    letter-spacing: 0.5px;
    margin-top: 6px;
}
.header-right {
    text-align: right;
    min-width: 320px;
    margin-right: 25px;
    margin-top: 4px;
}
.header-links {
    margin-left: 20px;
}
.header-links a {
    text-decoration: underline;
    margin-left: 5px;
}
.header-login-role { margin-bottom: 15px; margin-top: 5px;}


@media (max-width:600px) {
    .header-bar {
        flex-direction: column;
        align-items: flex-start;
        min-height: unset;
    }
    .header-right { 
        min-width:0;
        margin-right:0;
        margin-top:6px;
    }
}

/* Red 'Login' Sidebar Tab */
.left-login-tab {
    background: #cc0033;
    color: #fff;
    font-weight: bold;
    font-size: 17px;
    letter-spacing: 1px;
    padding: 9px 25px 8px 25px;
    border-radius: 0 0 2.5px 2.5px;
    margin-bottom: 8px;
    display: inline-block;
}
body {
    overflow-x: auto;
    color: #666666;
    font-size: 11px;
    font-family: verdana;
    line-height:150%;
}
a {
    text-decoration: none;
    color: #00A2ED;
    font-weight: normal;
}

/* --- FOOTER --- */
.footer-bar {
    width: 100%;
    background: #fff;
    border-top: 1px solid #c5c5c5;
    padding: 12px 16px 8px 16px;
    font-size: 13px;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: static;
    z-index: 5;
    box-sizing: border-box;
    overflow-x: auto;
    min-width: 0; 
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 13px;
}
.footer-left img {
    height: 38px;
    margin-right: 7px;
}
.footer-org-name {
    font-size: 10px;
}
.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.footer-right img {
    height: 45px;
    max-width: 100%;
    object-fit: contain;
}
.footer-state-text {
    color: #00a;
    font-size: 13.3px;
}
.footer-prog {
    margin-left:28px;
    font-size:10px;
    margin-top: 65px;
}
@media (max-width:880px) {
    .footer-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 7vw 16px 7vw;
        gap: 12px;
    }
    .footer-right {
        margin-top: 8px;
        justify-content: flex-start;
        gap: 12px;
    }
}
/* SIDEBAR & CONTENT */
#left {
    width: 220px;
    min-width: 220px;
    border-right: 1px solid #ddd;
    margin-top: 15px;
}
#left .inner {
    padding: 10px;
}
#left_menu {
    padding: 0;
    margin: 0;
}
#left_menu p.menu {
    margin: 0;
    padding: 0;
}
#left_menu p.menu a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    font-family: inherit;
    border: none;
    border-radius: 6px;
    margin: 2px 0;
    transition: all 0.2s ease;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#left_menu p.menu a:hover {
    background: #f5f7fa;
    color: #333;
    text-decoration: none;
    border-left: 3px solid #00A2ED;
    padding-left: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#left_menu p.menu.active a {
    font-weight: bold;
    background: #e8f4fd;
    color: #006bb3;
    border-left: 4px solid #00A2ED;
    padding-left: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#left_menu p.menu.active a:hover {
    background: #ddeef9;
}
#mainnavi {
    height: 50px;
    display: flex;
    align-items: stretch;
    background: none;
    border-bottom: 1px solid silver;
}
#mainnavi a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 40px;
    text-decoration: none;
    color: #999999;
    background: none;
    transition: background 0.18s, color 0.18s;
    font-weight: normal;
    border-radius: 0;
    box-shadow: none;
    font-size: 15px;
    border-right: 1px solid #CCCCCC;
}
#mainnavi a.last {
    border: medium none;
}
#mainnavi .Login-menu {
    background: #cc0033 url('/images/tab_bg_red.jpg') top left repeat-x;
    color: #fff !important;
    font-weight: bold;
    border-radius: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
    box-shadow: none;
}
#mainnavi a:hover {
    background: url('/images/tab_bg_red.jpg') top left repeat-x transparent;
    color: white;
    filter: brightness(0.95);
}
#mainnavi a.active {
    background: url('/images/tab_bg_red.jpg') bottom left repeat-x transparent;
    color: white;
}

/* ============ TABLES ============ */
.data-table, .form-container {
    padding: 35px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 18px rgba(120,120,120,0.10);
    margin-bottom: 50px;
}

.table {
    border: 1.3px solid #b5b5b5;
    border-collapse: collapse;
    width: 100%;
    margin: 0 0 30px 0;
    background: #fff;
}

.table th, .table td {
    border: 1px solid #ededed;
    padding: 16px 12px;
}

.table th {
    border-bottom: 2px solid #ebebeb;
}

.table tr {
    transition: background 0.18s;
}

.table .col-actions,
.table .cell-actions {
    text-align: center;
}

/* FORMS MODERN */
.container, .main-content, .admin-content {
    width: 96%;
    margin-left: 15px;
    background: #fff;
    border-radius: 7px;
    margin-bottom: 22px;
}

.page-title {
    font-size: 16px;
    color: red;
    font-weight: normal;
    margin-bottom: 20px;
}
.sidebar-title{
    color:red;
}
h2{
    font-size: 15px;
    color: #EDA200;
    font-weight: normal;
    margin-bottom: 20px;
}
h3{
    font-size: .8rem;
    color: #EDA200;
    font-weight: normal;
    margin-bottom: 20px;
}
label, .form-label {
    margin: 10px 0;
    display: inline-block;
}
select.form-control, select.form-select{
    width: 98.5%;
}
.form-control, .form-input, .form-select {
    border-radius: 6px;
    border: 1px solid #d8d8d8;
    padding: 14px 14px;
    margin-bottom: 10px;
    width: 96%;
    transition: border .2s;
}
.form-control:focus, .form-input:focus, .form-select:focus {
    border: 1.5px solid #eee;
    outline: none;
}
textarea.form-control {
    min-height: 100px;
}
.form-actions{
    margin-top: 15px;
}
.btn-cancel{
    margin-left: 10px;
}
/* Modern Button and Action Buttons */
.btn-primary,
.btn-save {
    border-radius: 6px;
    padding: 7px 10px;
    font-weight: 500;
    transition: background 0.18s;
    letter-spacing: 0.01em;
    text-align: center;
    cursor: pointer;
    background: #eeeeee;
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.4, rgb(250, 250, 250)), color-stop(1, rgb(204, 204, 204)));
    background-image: -moz-linear-gradient( center top, rgb(250,250,250) 40%, rgb(204,204,204) 100% );
    border: 1px solid silver;
    display: inline-block;
    margin: 10px 0 0;
    color:#000;
    font-size: 12px;
}
.btn-primary:hover, .btn-primary:focus,
.btn-save:hover, .btn-save:focus {
    background: #eeeeee;
    border: 1px solid gray;
}
a.btn {
    margin: 0 10px;
    cursor: pointer;
}
.section-actions {
    display: flex;
    gap: 20px;
}

/* Alert/Validation */
.alert,
.alert-success,
.alert-danger,
.alert-error {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 1px solid #feb2b2;
    border-radius: 8px;
    margin: 15px auto 22px auto;
    width: 95%;
    max-width: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    position: relative;
    padding: 16px 16px 16px 50px;
    color: #c53030;
    font-weight: 500;
}
.alert::before,
.alert-danger::before,
.alert-error::before {
    content: "⚠";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #e53e3e;
    font-weight: bold;
}
.alert-danger ul,
.alert-error ul {
    list-style-type: none;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    color: inherit;
    font-weight: inherit;
    position: static;
}
.alert-danger ul::before,
.alert-error ul::before {
    display: none;
}
.alert-success {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%) !important;
    border: 1px solid #9ae6b4 !important;
    color: #22543d !important;
    padding: 16px 16px 16px 55px !important;
}
.alert-success::before {
    content: "✓";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #38a169;
    font-weight: bold;
}
#error{
    border: 1px solid #feb2b2;
    border-radius: 8px;
    margin: 15px auto 20px auto;
    width: 95%;
    max-width: none;
    line-height: 150%;
    color: #c53030 !important;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    position: relative;
    padding: 16px 16px 16px 50px;
    font-weight: 500;
}
#error::before {
    content: "⚠";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #e53e3e;
    font-weight: bold;
}
#error span, #messages span {
    margin-bottom: 0px;
    padding: 0;
    display: block;
    font-weight: inherit;
}
.form-text,
.form-help,
small.form-text {
    display: block;
    color: #888;
    font-size: 0.96em;
    margin-bottom: 7px;
}

/* Spacing */
.page-header, .breadcrumb-nav, .content-section, .section-header, .section-actions {
    margin-bottom: 25px;
}

.section-header {
    padding-bottom: 36px;
    margin-bottom: 30px;
}

.cell-actions {
    text-align: center;
}
.content-section {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 42px;
    padding-bottom: 30px;
}

/* === MODERN PAGINATION === */
.pagination-section {
    padding: 28px 0 18px 0;
    background: transparent;
    border-top: none;
    text-align: center;
}
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.page-numbers {
    display: flex;
    gap: 6px;
}
.page-number, .nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.18rem;
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
    border: none;
    margin: 0 2px;
    background: #eee;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, color .18s, box-shadow .18s;
    box-shadow: 0 1px 2px rgba(204,0,51,0.07);
    border: 1px solid gray;
}
.page-number.active, .page-number.active:hover, .nav-arrow:not(.disabled):hover, .page-number:hover {
    background: darkgrey;
    color: #000;
    border-color: 1px solid gray;
}
.nav-arrow.disabled, .page-number.disabled {
    background: #f2f2f2;
    color: #b9b9b9;
    pointer-events: none;
    border-color: #ebebeb;
}
.pagination-info {
    margin-bottom: 12px;
    color: #888;
    font-size: 15px;
}
@media (max-width: 540px) {
    .page-number, .nav-arrow {
        min-width: 28px;
        min-height: 28px;
        font-size: 1rem;
    }
}

/* === ACTION DROPDOWN === */
.action-dropdown {
    position: relative;
    display: inline-block;
}
.action-btn {
    background: 1px solid gray;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 1.02rem;
    padding: 8px 22px 8px 18px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(176,27,39,0.09);
    position: relative;
    transition: background 0.13s, color 0.13s;
    letter-spacing: 0.01em;
    min-width: 105px;
}
.action-btn:after {
    content: '';
    border-top: 5.5px solid #000;
    border-right: 5.5px solid transparent;
    border-left: 5.5px solid transparent;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
    position: relative;
    top: -3px;
}
.action-btn:hover, .action-btn:focus {
    background: #eeeeee;
    color: #000;
}
.action-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 100px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 7px;
    box-shadow: 0 8px 22px rgba(176,27,39,0.11);
    z-index: 101;
    margin: 0;
    padding: 10px;
    overflow: hidden;
}
.action-dropdown .dropdown-menu.show {
    display: block;
}
.dropdown-item {
    width: 100%;
    padding: 1px;
    font-size: 1rem;
    color: #444;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.13s, color 0.13s;
    font-family: inherit;
    outline: none;
}
.dropdown-item:hover,
.dropdown-item:focus {
    font-weight: 700;
}
.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 6px 0;
}
.dropdown-item.danger:hover {
    font-weight: 700;
}
.dropdown-form button.dropdown-item {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1px;
    color: #444;
    text-align: center;
    cursor: pointer;
}
.dashboard-info-sidebar span{
    font-weight: normal;
    color: #999;
    font-size:13px
}
@media (max-width: 430px) {
    .action-dropdown .dropdown-menu {
        min-width: 120px;
        font-size: 0.95rem;
    }
    .dropdown-item {padding: 9px 12px;}
}

/* === NATIVE SELECT STYLING === */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid grey;
    color: #333;
    background: #FFF url("data:image/svg+xml,%3Csvg width='16' height='12' viewBox='0 0 16 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5l5 5 5-5' stroke='%23000000' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E") no-repeat right 0.7em center/1em 1em;
    border-radius: 5px;
    font-size: 1em;
    padding: 6px 32px 6px 12px;
    width: 110px;
    font-family: inherit;
    cursor: pointer;
    transition: border 0.15s;
    margin: 0;
}
select:focus {
    border: 1px solid grey;
    outline: none;
}
select option {
    font-size: 1em;
    background: #fff;
    color: #333;
    padding: 5px 0;
}
td select {
    width: 100px;
    font-size: 1em;
    padding: 5px 26px 5px 8px;
    margin: 0;
}
.create-new-btn{
    float: right;
}
.sort-arrow {
    display: inline-block;
    cursor:pointer;
}
.back-button-section{
    float: right;
}
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.5);
}

.custom-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    position: relative;
}
.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: 1.5rem;
}
.custom-modal .cancel-btn{
    margin-top: 17px;
}
.team-admin-card-body{
    margin-top: 15px;
}
.cms-content table {
    border-collapse: collapse;
}
.cms-content table td {
    padding: 10px;
}
.text-capitalize{
    text-transform: capitalize;
}

/* Miscellaneous improvements */
input[type="password"] { letter-spacing: 1.5px; }
.form-control.error, .form-input.error { border-color: #dc3545; box-shadow: 0 0 5px rgba(220,53,69,0.12);}
.form-control.success, .form-input.success { border-color: #28a745; box-shadow: 0 0 5px rgba(40,167,69,0.12);}
.teaminfo_block {
    display: block;
    margin: 5px 0 10px 0px;
}

/* --------- End of CSS --------- */
