html,body {
    height:100%;
    width:100%;
    margin:0;
    font-family: 'BarclaysEffra_W_Rg';
    background: #F1F5F8;
  }
  body {display: inline;width: 100%; height: 100%;}
  @font-face {
    font-family: 'BarclaysEffra_W_Rg';
    src: url('../fonts/BarclaysEffra_W_Rg.woff') format('woff2'),
        url('../fonts/BarclaysEffra_W_Rg.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}  
@font-face {
    font-family: 'BarclaysEffra_W_Bd';
    src: url('../fonts/BarclaysEffra_W_Bd.woff2') format('woff2'),
        url('../fonts/BarclaysEffra_W_Bd.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tomatoes';
    src: url('../fonts/Tomatoes.woff2') format('woff2'),
        url('../fonts/Tomatoes.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
p {
    font-size: 16px;
    font-family: 'BarclaysEffra_W_Rg';
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    line-height: 23px;
    color: #000;
  } 
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'BarclaysEffra_W_Bd';
}
a, a:hover {
    transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -ms-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
    text-decoration: none!important;
    cursor: pointer;
  }
a, a:focus, a:hover, button, button:focus, button:hover, checkbox, checkbox:focus, checkbox:hover, input, input:focus, input:hover, select, select:focus, select:hover {
    outline: 0;
  }
  ul {
    margin: 0;
  }
  li {
    list-style: none;
    font-family: 'BarclaysEffra_W_Rg';
  }
  section.barclay {
    height: 100%;
}
.hfont {
    font-family: 'Tomatoes';
    color: #484848;
    font-weight: 600;
}
.blue-btn button {
    background: #00AEEF;
    color: #fff;
    padding: 10px 30px;
    font-size: 20px;
    border: 2px solid #00AEEF;
    border-radius: 5px;
}
.blue-btn button:hover {
    background: #015e80;
    color: #fff;
    padding: 10px 30px;
    font-size: 20px;
    border: 2px solid #015e80;
}
.border-btn button {
    background: #fff;
    color: #484848;
    padding: 10px 30px;
    font-size: 20px;
    border: 2px solid #00AEEF;
    border-radius: 5px;
}
.border-btn button:hover {
    background: #fff;
    border: 2px solid #015e80;
    color: #484848;
    padding: 10px 30px;
    font-size: 20px;
}
.dot-btn button {
    background: #fff;
    color: #00000050;
    padding: 15px 30px;
    font-size: 18px;
    border: 2px dashed #484848;
    border-radius: 5px;
    font-weight: 600;
}
.dot-btn button:hover {
    background: #fff;
    border: 2px dashed #484848;
    color: #00000050;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
}
.whitebg {background:#fff ;}
.h-93 {
    height: 93%;
}
.br-10 {border-radius: 10px;}
sup {color: red;}
.form-section .form-control {
    padding: 10px;
    border: 1px solid #C5C6C8;
}
.relative {position: relative;}
.refresh {
    position: absolute;
    bottom: 20px;
    right: 20px;
}
.refresh img {
    width: 35px;
}
.rulesicon {
    background: url(../images/rulesicon.png) no-repeat;
    padding-left: 28px;
    background-size: 20px;
    padding-bottom: 5px;
}
.rulesicon a {
    font-weight: 600;
    color: #484848;
    border-bottom: 2px solid #484848;
    font-size: 17px;
}
.form-section h4 {
    font-size: 30px;
    color: #484848;
}
.modal-title {
    color: #27AADC;
    font-size: 25px!important;
}
.content-scroll {
    height: 165px;
    overflow: hidden;
    overflow-y: scroll;
}
img.slogo {
    width: 200px;
}
.whitebg h6 {
    font-size: 18px;
}
.refresh{
    cursor: pointer;
}
.error-message{
    color: red;
}
.field-error{
    border: 1px solid red !important;
}
.modal-body h2 {
    font-size: 25px;
    text-align: center;
    margin-bottom: 15px;
    color: #111;
  }
  .modal-body h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #111;
    line-height: 30px;
  }
  table {
    caption-side: bottom;
    border-collapse: collapse;
    border: 1px solid #111;
  }
  table th {
    background-color: #f7f7f7 !important;
  }
  .modal-body li {
    list-style: disc;
    margin-bottom: 8px;
  }

/*---------------------Media Query--------------------*/
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation:portrait) {
    .content-scroll {
        height: 65%;
        overflow: hidden;
        overflow-y: scroll;
    }
}
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation:landscape) {
    .content-scroll {
        height: 50%;
        overflow: hidden;
        overflow-y: scroll;
    }
}

@media only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation:portrait) {
    .content-scroll {
        height: 65%;
        overflow: hidden;
        overflow-y: scroll;
    }
}

/*---------------------Network Status Indicator--------------------*/
#network-status {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    z-index: 9999;
    transition: all 0.3s ease;
}
#network-status.network-offline {
    background-color: #dc3545;
    color: #fff;
}
#network-status.network-online {
    background-color: #28a745;
    color: #fff;
}
#network-status.network-syncing {
    background-color: #ffc107;
    color: #212529;
}
#network-status.network-pending {
    background-color: #17a2b8;
    color: #fff;
}

/*---------------------Entry Code Gate Styles--------------------*/
.entry-code-container {
    max-width: 350px;
    padding: 20px;
}
.entry-code-input-wrapper {
    display: flex;
    justify-content: center;
}
.entry-code-input {
    width: 200px;
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    padding: 15px 20px !important;
    border: 2px solid #C5C6C8 !important;
    border-radius: 8px;
}
.entry-code-input:focus {
    border-color: #00AEEF !important;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}
.entry-code-input.field-error {
    border-color: #dc3545 !important;
    animation: shake 0.4s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/*---------------------Offline Save Message--------------------*/
.offline-saved-message {
    background-color: #17a2b8;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

/*---------------------Offline Management Page Styles--------------------*/
#offline-page h4 {
    color: #484848;
    font-size: 24px;
}

#offline-page .card {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

#offline-page .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

/* Stats Cards */
#offline-page .stats-card {
    transition: all 0.3s ease;
}

#offline-page .stats-card h3 {
    font-size: 36px;
    margin-bottom: 5px;
    color: #484848;
}

#offline-page .stats-card.pending-card.has-items {
    border-left: 4px solid #ffc107;
}

#offline-page .stats-card.synced-card.has-items {
    border-left: 4px solid #28a745;
}

#offline-page .stats-card.failed-card.has-items {
    border-left: 4px solid #dc3545;
}

/* Network Indicator */
.network-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.network-indicator.online {
    background-color: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

.network-indicator.offline {
    background-color: #dc3545;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}

/* Entries List */
.entries-list-container {
    max-height: 300px;
    overflow-y: auto;
}

.entry-item {
    transition: background-color 0.2s ease;
}

.entry-item:hover {
    background-color: #f8f9fa;
}

.entry-item:last-child {
    border-bottom: none !important;
}

.entry-info strong {
    color: #484848;
}

/* Button Styles */
#offline-page .btn {
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 500;
}

#offline-page .btn-primary {
    background-color: #00AEEF;
    border-color: #00AEEF;
}

#offline-page .btn-primary:hover:not(:disabled) {
    background-color: #015e80;
    border-color: #015e80;
}

#offline-page .btn-primary:disabled {
    background-color: #87d4f5;
    border-color: #87d4f5;
}

#offline-page .gap-3 {
    gap: 1rem;
}

/* Toast Notifications */
.offline-toast {
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Badge Styles */
#offline-page .badge {
    font-size: 12px;
    padding: 5px 10px;
}

/* Network Card Border */
#offline-page #network-card {
    transition: border-color 0.3s ease;
}

#offline-page #network-card.border-success {
    border-color: #28a745 !important;
}

#offline-page #network-card.border-danger {
    border-color: #dc3545 !important;
}

/* Responsive adjustments for offline page */
@media only screen and (max-width: 767px) {
    #offline-page h4 {
        font-size: 20px;
    }

    #offline-page .stats-card h3 {
        font-size: 28px;
    }

    #offline-page .btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .entries-list-container {
        max-height: 200px;
    }
}
