body{
    font-family: 'PT Sans', sans-serif;
    /*background-image:url('../images/login_banner.jpg');background-size:cover;*/
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0c0c0c 100%);
    min-height: 100vh;
}
.myForm{
    background:#ffffff33;
    border-radius:10px;
    box-shadow:10px 10px 10px #00000070;
    margin-bottom:4%;
    padding: 20px 30px 20px;
    margin: 0 10px;
}
.rowMT{
    margin-top:8%
}
.btn{
    margin-top:4%;
    float:right;
}
#menu-academico-sub{
    width: 90%;
}
.home_btn,.home_btn1,.home_btn2{
    background:#ffffff3b;
    margin:10%;
    color:white;
    padding:8%;
    font-size: 20px;
    text-align:center;
    border-radius:10px;
    box-shadow:0px 0px 27px #00000087;
    transition: all 0.3s ease;
}
.home_btn i,.home_btn1 i,.home_btn2 i{
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}
/*.home_btn1{
background: #b52e318a;
}*/
.home_btn:hover,.home_btn1:hover,.home_btn2:hover{
    background: #b52e318a;   
    transform: translateY(-2px);
    box-shadow: 0px 5px 30px #00000087;
}
.home_btn.active,.home_btn1.active,.home_btn2.active{
    background: #b52e318a;   
}

/* Premium League View Styles */
body.dark {
    background: #000;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.page-title {
    color: #fff;
    font-size: 2.0rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-title i {
    color: #ffd700;
    margin-right: 15px;
}

.league-table-container {
    /* background: linear-gradient(145deg, rgb(23 23 23 / 95%), rgb(31 31 31 / 95%)); */
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 0px solid rgb(27 27 27);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    width: 100%;
    overflow-x: auto;
}

.add-league-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-bottom: 0px;
}

.add-league-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
    color: #fff;
    text-decoration: none;
}

#circle {
    width: 100px;
    height: 100px;
    background: red;
    border-radius: 50%
}
.dark th{
    color: white;
    font-size:13px;
    text-align: center;
    background: #640000 !important;
    border-bottom: 2px solid rgba(255,255,255,0.1) !important;
}
.dark td{
    color: white;
    font-size:15px;
    text-align: center;
    width:10%;
    vertical-align: middle !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
.dark .table-striped>tbody>tr:nth-child(odd) {
    background-color: rgba(96, 96, 96, 0.2);
}
/* .dark table.dataTable tbody tr {
    background-color: rgba(50, 49, 49, 0.3);
    transition: all 0.3s ease;
}
.dark table.dataTable tbody tr:hover {
    background-color: rgba(116, 185, 255, 0.1);
    transform: scale(1.01);
} */
.dark .btn-primary {
    color: #fff;
    background-color: #000000 !important;
    border-color: #000000 !important;
}

.dark .dataTables_wrapper .dataTables_length,.dark  .dataTables_wrapper .dataTables_filter,.dark  .dataTables_wrapper .dataTables_info, .dark .dataTables_wrapper .dataTables_processing,.dark  .dataTables_wrapper .dataTables_paginate {
    color: #dfdfdf;
    font-size: 13px;
}

/* DataTable Enhanced Styling */
table.dataTable {
    background: transparent !important;
    color: #fff !important;
    border-radius: 12px;
    overflow: hidden;
    border: none !important;
}

/* Dark theme for DataTables */
.dark table.dataTable thead th {
    background: linear-gradient(145deg, #000000, #000000) !important;
    color: #fff !important;
    border-bottom: 2px solid rgba(255,255,255,0.1) !important;
    border-right: 1px solid rgba(255,255,255,0.05) !important;
    border-left: none !important;
    border-top: none !important;
}

.dark table.dataTable tbody td {
    background: rgba(45, 52, 54, 0.8) !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    border-right: 1px solid rgba(255,255,255,0.05) !important;
    border-left: none !important;
    border-top: none !important;
}

.dark table.dataTable tbody tr:nth-child(odd) td {
    background: rgba(50, 49, 49, 0.9) !important;
}

.dark table.dataTable tbody tr:hover td {
    /* background: rgba(116, 185, 255, 0.2) !important; */
    color: #fff !important;
}

/* DataTable wrapper styling */
.dark .dataTables_wrapper {
    color: #fff !important;
}

.dark .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: rgba(45, 52, 54, 0.8) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

.dark .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(116, 185, 255, 0.3) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
}

.dark .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(145deg, #00b894, #00cec9) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_filter input {
    background: rgba(45, 52, 54, 0.8);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px;
}

.dataTables_wrapper .dataTables_filter input::placeholder {
    color: rgba(255,255,255,0.6);
}

.dataTables_wrapper .dataTables_length select {
    background: rgba(45, 52, 54, 0.8);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
}

.dataTables_wrapper .dataTables_length select option {
    background: #2d3436;
    color: #fff;
}

/* Force dark background for table */
.dark table.dataTable,
.dark .dataTables_wrapper {
    background: transparent !important;
}

.dark .league-table-container table {
    background: transparent !important;
}

/* Remove any white backgrounds */
.dark .dataTables_wrapper .dataTables_filter,
.dark .dataTables_wrapper .dataTables_length,
.dark .dataTables_wrapper .dataTables_info,
.dark .dataTables_wrapper .dataTables_paginate {
    background: transparent !important;
}

/* League Details Cell Styling */
.league-details-cell {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
}

.league-logo {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.league-logo-img {
    width: 70px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.league-logo-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #ffd700, #ffb347);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.league-logo-placeholder i {
    font-size: 24px;
    color: #2d3436;
}

.league-name {
    flex: 1;
    text-align: left;
}

.league-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

.league-id {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}

/* Status Toggle Switch */
.status-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.status-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.status-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.status-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, #fd79a8, #e84393);
    transition: .4s;
    border-radius: 34px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.status-slider:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

input:checked + .status-slider {
    background: linear-gradient(145deg, #00b894, #00cec9);
}

input:focus + .status-slider {
    box-shadow: 0 0 1px rgba(0, 184, 148, 0.5);
}

input:checked + .status-slider:before {
    transform: translateX(17px);
}

.status-label {
    min-height: 20px;
}

.status-text {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

/* Loading state for toggle */
.status-toggle.loading .status-slider {
    opacity: 0.6;
    pointer-events: none;
}

/* Priority Badges */
.priority-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.priority-1 { background: #e17055; color: #fff; }
.priority-2 { background: #fdcb6e; color: #2d3436; }
.priority-3 { background: #74b9ff; color: #fff; }
.priority-4 { background: #a29bfe; color: #fff; }
.priority-5 { background: #6c5ce7; color: #fff; }

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.btn-edit, .btn-delete, .btn-toggle {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-edit {
    /* background: linear-gradient(145deg, #74b9ff, #0984e3); */
    color: #fff;
}

.btn-delete {
    /* background: linear-gradient(145deg, #fd79a8, #e84393); */
    color: #fff;
    /* border: 2px solid #e84393 !important; */
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Fallback if icon doesn't load */
.btn-delete:before {
    content: "🗑️";
    color:red !important;
    font-size: 16px;
}

.btn-delete i {
    font-size: 14px;
}

/* Show text fallback if Font Awesome fails to load */
.btn-delete .fa:before {
    content: "\f1f8"; /* Unicode for trash icon */
}

/* If FA fails completely, show text */
.btn-delete .fa:empty + .btn-text {
    display: inline !important;
    font-size: 10px;
    font-weight: bold;
}

/* Force delete button visibility */
.action-buttons .btn-delete {
    /* background: #e74c3c !important; */
    min-width: 35px !important;
    min-height: 35px !important;
}

.btn-toggle {
    background: linear-gradient(145deg, #00b894, #00cec9);
    color: #fff;
}

.btn-edit:hover, .btn-delete:hover, .btn-toggle:hover {
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transform: scale(1.1);
}

/* Header Row Styles */
.league-header-row {
    align-items: center;
    margin-bottom: 20px;
    background: #111;
    min-height: 70px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.league-header-row .page-title {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 0;
    text-align: left;
    display: flex;
    align-items: center;
}

.league-header-row .add-league-btn {
    margin-right: 0;
}

/* Full Width Header Row */
.league-header-row-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #282828 !important;
    min-height: 70px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    margin-top: 0px;
    margin-bottom: 20px;
    z-index: 10;
    overflow-x: hidden;
    margin-bottom:20px;
}

.league-header-row-full > div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.league-header-row-full .page-title {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 0;
    text-align: left;
    flex: 1;
    display: flex;
    align-items: center;
}

.league-header-row-full .add-league-btn {
    margin-left: auto;
}

@media (max-width: 992px) {
    .league-header-row-full > div {
        padding: 0 12px;
    }
    .league-header-row-full .page-title {
        font-size: 1.5rem;
    }
    .league-header-row-full .add-league-btn {
        font-size: 0.95rem;
        padding: 8px 12px;
    }
    table.dataTable {
        font-size: 0.95rem;
    }
}
@media (max-width: 768px) {
    .league-header-row-full {
        min-height: 56px;
        margin-top: 48px;
        margin-bottom: 12px;
    }
    .league-header-row-full > div {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
    }
    .league-header-row-full .page-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
        justify-content: flex-start;
    }
    .league-header-row-full .add-league-btn {
        width: 100%;
        margin-left: 0;
        margin-bottom: 0;
        font-size: 0.95rem;
        justify-content: center;
        margin-top:10px;
    }
    table.dataTable {
        font-size: 0.9rem;
    }
    .league-table-container {
        padding: 10px;
    }
    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }
}
@media (max-width: 480px) {
    .league-header-row-full {
        min-height: 44px;
        margin-top: 5px;
        margin-bottom: 25px;
    }
    .league-header-row-full .page-title {
        font-size: 1rem;
    }
    .league-header-row-full .add-league-btn {
        font-size: 0.85rem;
        padding: 6px 8px;
    }
    table.dataTable {
        font-size: 0.85rem;
    }
    .league-table-container {
        padding: 4px;
    }
}

/* Responsive modal */
.premium-league-modal .modal-dialog {
    min-width: 320px;
    max-width: 98vw;
    margin: 0 auto;
}
.premium-league-modal .modal-content {
    padding: 0;
    border-radius: 14px;
}
.premium-league-modal .modal-body {
    padding: 18px 10px;
}
.premium-league-modal .modal-title {
    font-size: 1.2rem;
}
.premium-league-modal .premium-input {
    font-size: 1rem;
}
@media (max-width: 480px) {
    .premium-league-modal .modal-dialog {
        min-width: 220px;
        max-width: 100vw;
    }
    .premium-league-modal .modal-title {
        font-size: 1rem;
    }
    .premium-league-modal .modal-body {
        padding: 10px 4px;
    }
}

/* Responsive DataTable improvements */
.league-table-container {
    width: 100%;
    overflow-x: auto;
}
table.dataTable {
    width: 100% !important;
    min-width: 600px;
    table-layout: auto;
    border-collapse: collapse;
}
table.dataTable th, table.dataTable td {
    white-space: nowrap;
    word-break: keep-all;
    text-align: left;
    vertical-align: middle;
}
.priority-col {
    white-space: nowrap;
    word-break: keep-all;
}
@media (max-width: 992px) {
    .league-table-container {
        padding: 0;
        width: 100%;
        overflow-x: auto;
    }
    table.dataTable {
        width: 100% !important;
        min-width: 480px;
        font-size: 0.95rem;
    }
}
@media (max-width: 768px) {
    .league-table-container {
        padding: 0;
        width: 100%;
        overflow-x: auto;
    }
    table.dataTable {
        width: 100% !important;
        min-width: 360px;
        font-size: 0.9rem;
    }
    table.dataTable th, table.dataTable td {
        font-size: 0.9rem;
        padding: 6px 4px;
    }
}
@media (max-width: 480px) {
    .league-table-container {
        padding: 0;
        width: 100%;
        overflow-x: auto;
    }
    table.dataTable {
        width: 100% !important;
        min-width: 320px;
        font-size: 0.85rem;
    }
    table.dataTable th, table.dataTable td {
        font-size: 0.85rem;
        padding: 4px 2px;
    }
}

/* Responsive topbar menu */
.global-topbar {
    width: 100%;
    background: #181818;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    min-height: 56px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}
.global-topbar .topbar-logo {
    font-size: 1.2rem;
    font-weight: bold;
}
.global-topbar .topbar-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}
.global-topbar .topbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
@media (max-width: 768px) {
    .global-topbar {
        padding: 0 10px;
        min-height: 48px;
    }
    .global-topbar .topbar-logo {
        font-size: 1rem;
    }
    .global-topbar .topbar-menu {
        display: none;
        flex-direction: column;
        gap: 12px;
        background: #222;
        position: absolute;
        top: 48px;
        left: 0;
        width: 100%;
        padding: 10px 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }
    .global-topbar .topbar-menu.active {
        display: flex;
    }
    .global-topbar .topbar-toggle {
        display: block;
    }
}
/* Smaller page title on mobile */
.league-header-row-full .page-title {
    font-size: 2.2rem;
}
@media (max-width: 768px) {
    .league-header-row-full .page-title {
        font-size: 1.1rem;
    }
}
@media (max-width: 480px) {
    .league-header-row-full .page-title {
        font-size: 0.95rem;
    }
}

/* AJAX Notification Styles */
.ajax-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.ajax-notification.success {
    background: linear-gradient(145deg, #00b894, #00cec9);
}

.ajax-notification.error {
    background: linear-gradient(145deg, #fd79a8, #e84393);
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.status-live { 
    background: #00b894; 
    color: #fff; 
    box-shadow: 0 0 10px rgba(0, 184, 148, 0.5);
}
.status-off { 
    background: #fd79a8; 
    color: #fff; 
    box-shadow: 0 0 10px rgba(253, 121, 168, 0.5);
}
  .table-responsive{
    border:0px !important;
  }
.homeMT{
    margin-top: 0; /* Removed for premium design */
}
.remove_btn{
    float:right;
    cursor:pointer;
    background:#a90000;
    color:white;
    padding:4px 10px;
    border-radius: 5px;
}
@media(max-width:767px){
    .rowMT{
        margin-top:60%
    }   
    .myForm{
        padding: 20px 30px 80px;
    }
}

/*-------------------*/
.dark{
    background:black;
}
.dark label,.dark p,.dark .card-title{
    color:white;
}
.dark .form-control{
    color: white !important;
    border: none;
    background: #2d2d2d;
    box-shadow: 0px 0px 10px #00000085;
}
.dark h1,.dark h2,.dark h3,.dark h4{
    color: white;
}
.light{
    background:white;
}
.light label,.light p,.light .card-title{
    color:black  !important;
}
.light .form-control{
    color: black !important;
    border: none;
    background: #2d2d2d;
    box-shadow: 0px 0px 10px #00000085;
}
.light h1,.light h2,.light h3,.light h4{
    color: black !important;
}

/* Desktop Sidebar Toggle Button */
.sidebar-toggle-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #2d2d2d;
    border: none;
    color: #fff;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.sidebar-toggle-btn:hover {
    background: #4a4a4a;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.sidebar-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Hide on mobile as mobile has its own toggle */
@media (max-width: 767px) {
    .sidebar-toggle-btn {
        display: none !important;
    }
}

/* Collapsed sidebar adjustments */
.page-container.sidebar-collapsed .sidebar-toggle-btn {
    right: 10px;
    top: 20px;
}

.page-container.sidebar-collapsed .logo1 {
    text-align: center;
    position: relative;
}

/* Animation for the toggle icon */
.page-container.sidebar-collapsed .sidebar-toggle-btn i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.sidebar-toggle-btn i {
    transition: transform 0.3s ease;
}
