/* =====================================
   GENERAL STYLING
===================================== */

.ntl-my-team h3, 
.ntl-my-team h4 {
    margin-bottom: 10px;
    margin-top: 20px;
}

.ntl-my-team h3 {
    font-size: 1.5em;
    border-bottom: 2px solid #0055aa;
    padding-bottom: 8px;
}

.ntl-my-team hr {
    margin: 25px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.ntl-my-team > p {
    margin: 15px 0;
}

.ntl-my-team ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.ntl-my-team ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.ntl-my-team ul li:last-child {
    border-bottom: none;
}

.ntl-my-team {
    position: relative;
}

/* =====================================
   NOTICE STYLES
===================================== */

.ntl-notice {
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: ntl-slide-in 0.3s ease;
}

.ntl-notice--success {
    background: #e6ffed;
    border: 1px solid #2ecc71;
    color: #1e7e34;
}

.ntl-notice--info {
    background: #ebf5ff;
    border: 1px solid #3498db;
    color: #1f4e79;
}

.ntl-notice--error {
    background: #ffecec;
    border: 1px solid #e74c3c;
    color: #8a1f11;
}

@keyframes ntl-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================
   TEAM LOGO AREA
===================================== */

.ntl-team-logo-panel {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.ntl-team-logo-panel h4 {
    margin-top: 0;
    margin-bottom: 12px;
}

.ntl-team-logo-panel img {
    max-width: 160px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ntl-team-logo-panel input[type="file"] {
    display: block;
    margin-top: 8px;
    margin-bottom: 8px;
}

.ntl-team-logo-panel form {
    margin: 0;
}

/* =====================================
   TEAMMATE TABLE
===================================== */

.ntl-member-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ntl-member-table th {
    background: #f6f6f6;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.ntl-member-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
}

.ntl-member-table tr:last-child td {
    border-bottom: none;
}

.ntl-member-table tr:hover {
    background: #fafafa;
}

.ntl-member-actions {
    white-space: nowrap;
}

.ntl-member-actions button,
.ntl-member-actions form {
    margin-right: 6px;
    margin-bottom: 4px;
}

.ntl-member-actions form {
    display: inline-block;
}

/* =====================================
   BUTTONS
===================================== */

button.ntl-btn,
.ntl-btn {
    font-size: 20px !important;
    padding: 10px 20px !important;
    border: 2px solid #008aa4 !important;
    border-radius: 20px !important;
    background: #008aa4 !important;
    box-shadow: none !important;
    color: #fff !important;
    text-shadow: none !important;
    letter-spacing: 0.3px;
}

button.ntl-btn:hover,
.ntl-btn:hover {
    background: #003f7a;
}

button.ntl-btn:disabled,
.ntl-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button.ntl-btn:focus,
.ntl-btn:focus {
    outline: 2px solid #0055aa;
    outline-offset: 2px;
}

.ntl-btn-danger {
    background: #c0392b;
}

.ntl-btn-danger:hover {
    background: #922b21;
}

.ntl-btn-secondary {
    background: #6c757d;
    color: white;
    white-space: nowrap;
}

.ntl-btn-secondary:hover {
    background: #5a6268;
}

.ntl-btn-small {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
    background: #cc0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.ntl-btn-small:hover {
    background: #a00000;
}

.ntl-btn-icon {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
    transition: all 0.2s;
}

.ntl-btn-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.ntl-btn-icon.ntl-btn-danger:hover {
    filter: hue-rotate(10deg);
}

/* =====================================
   FORMS
===================================== */

.ntl-my-team form {
    margin: 15px 0;
}

.ntl-my-team label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.ntl-my-team input[type="text"],
.ntl-my-team input[type="email"],
.ntl-my-team input[type="number"] {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    max-width: 400px;
    margin-top: 4px;
}

.ntl-my-team input[type="text"]:focus,
.ntl-my-team input[type="email"]:focus,
.ntl-my-team input[type="number"]:focus {
    outline: none;
    border-color: #0055aa;
    box-shadow: 0 0 0 2px rgba(0, 85, 170, 0.1);
}

.ntl-input-group {
    display: flex;
    gap: 8px;
}

.ntl-input-group input[type="text"],
.ntl-input-group input[type="email"],
.ntl-input-group input[type="file"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ntl-input-group input:focus {
    outline: none;
    border-color: #cc0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.ntl-input-large {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ntl-input-large:focus {
    outline: none;
    border-color: #cc0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

/* =====================================
   AJAX LOADING OVERLAY
===================================== */

.ntl-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 4px;
}

.ntl-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0055aa;
    border-radius: 50%;
    animation: ntl-spin 1s linear infinite;
}

@keyframes ntl-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================================
   WPUF CUSTOMIZATION
===================================== */

body .wpuf-dashboard-container .wpuf-dashboard-content > div,
body .wpuf-dashboard-container .wpuf-dashboard-content > form {
    width: 90%;
}

body .wpuf-dashboard-container .wpuf-dashboard-navigation {
    background-color: #ffffff;
    border-radius: 8px;
}

body .wpuf-dashboard-container .wpuf-dashboard-navigation ul li {
    padding: 0px;
}

body .wpuf-dashboard-container .wpuf-dashboard-navigation ul li a {
    display: block;
    padding: 4%;
}

body .wpuf-menu-item.active a {
    background-color: #d13237;
}

body .wpuf-menu-item a:hover {
    background-color: #d13237;
    cursor: pointer;
}

body .wpuf-menu-item.active a,
body .wpuf-menu-item:hover a {
    color: #ffffff !important;
}

.wpuf-dashboard-navigation li:first-child a {
    border-radius: 8px 8px 0 0;
}

.wpuf-dashboard-navigation li:last-child a {
    border-radius: 0 0 8px 8px;
}

.wpuf-dashboard-navigation a[href*="dashboard"]::before {
    content: "\f102";
    font-family: dashicons;
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.wpuf-dashboard-navigation a[href*="edit-profile"]::before {
    content: "\f111";
    font-family: dashicons;
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.wpuf-dashboard-navigation a[href*="ntl-my-team"]::before {
    content: "\f307";
    font-family: dashicons;
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.wpuf-dashboard-navigation a[href*="league-manager"]::before {
    content: "\f481";
    font-family: dashicons;
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.wpuf-dashboard-navigation a[href*="training"]::before {
    content: "\f331";
    font-family: dashicons;
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.wpuf-dashboard-content {
    padding: 0px 24px;
}

/* =====================================
   DASHBOARD STYLES
===================================== */

.ntl-dashboard h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid #0055aa;
    padding-bottom: 10px;
}

.ntl-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Two column grid for Area Manager top row */
.ntl-dashboard-grid--two-col {
    grid-template-columns: 1fr 1fr;
}

/* Full width panel */
.ntl-dash-panel--full-width {
    width: 100%;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .ntl-dashboard-grid,
    .ntl-dashboard-grid--two-col {
        grid-template-columns: 1fr;
    }
}

.ntl-dash-panel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ntl-dash-panel h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.ntl-dash-panel h3 .dashicons {
    color: #0073aa;
    font-size: 20px;
}

.ntl-dash-panel p {
    color: #666;
    font-style: italic;
}

.ntl-dash-panel--team-activity {
    grid-column: 1 / -1;
}

/* Next Show Display */
.ntl-next-show {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
}

.ntl-next-show-date {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.ntl-next-show h4 {
    margin: 0;
    font-size: 1.2em;
}

.ntl-next-show h4 a {
    color: #fff;
    text-decoration: none;
}

.ntl-next-show h4 a:hover {
    text-decoration: underline;
}

/* =====================================
   NEWS MODULE
===================================== */

.ntl-news-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ntl-news-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.ntl-news-item:hover {
    background: #f0f0f0;
}

.ntl-news-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #ddd;
}

.ntl-news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ntl-news-content {
    flex: 1;
}

.ntl-news-title {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 600;
}

.ntl-news-title a {
    color: #333;
    text-decoration: none;
}

.ntl-news-title a:hover {
    color: #0073aa;
}

.ntl-news-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.ntl-news-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* =====================================
   TEAM ACTIVITY
===================================== */

.ntl-team-activity {
    margin-bottom: 30px;
}

.ntl-team-activity:last-child {
    margin-bottom: 0;
}

.ntl-team-activity h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #0055aa;
}

.ntl-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ntl-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: background 0.2s ease;
}

.ntl-activity-item:hover {
    background: #f0f0f0;
}

.ntl-activity-item:last-child {
    margin-bottom: 0;
}

.ntl-activity-icon {
    flex-shrink: 0;
    font-size: 1.3em;
    width: 40px;
    height: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ntl-activity-icon--image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
}

.ntl-activity-icon--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ntl-activity-text {
    flex: 1;
    font-size: 0.95em;
    color: #333;
}

.ntl-activity-date {
    flex-shrink: 0;
    font-size: 0.85em;
    color: #999;
}

.ntl-activity-item--score {
    border-left: 3px solid #2ecc71;
}

.ntl-activity-item--score.has-venue-logo {
    border-left: 3px solid #f39c12;
}

.ntl-activity-item--member_added {
    border-left: 3px solid #3498db;
}

.ntl-activity-item--member_removed {
    border-left: 3px solid #e74c3c;
}

.ntl-activity-item--name_change {
    border-left: 3px solid #f39c12;
}

.ntl-activity-item--captain_change {
    border-left: 3px solid #9b59b6;
}

.ntl-activity-item--co_captain_assigned {
    border-left: 3px solid #1abc9c;
}

.ntl-activity-item--co_captain_removed {
    border-left: 3px solid #95a5a6;
}

.ntl-activity-item--logo_updated {
    border-left: 3px solid #e67e22;
}

/* =====================================
   AREA MANAGER - RECENT TEAMS
===================================== */

.ntl-recent-teams-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ntl-recent-team-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #0073aa;
    transition: background 0.2s ease;
}

.ntl-recent-team-item:hover {
    background: #f0f0f0;
}

.ntl-recent-team-item--claim {
    border-left-color: #FF9800;
    background: #fff3e0;
}

.ntl-recent-team-item--claim:hover {
    background: #ffe0b2;
}

.ntl-recent-team-item--claim .ntl-team-captain strong {
    color: #F57C00;
}

.ntl-recent-team-item--registration {
    border-left-color: #0073aa;
}

.ntl-team-logo-small {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ntl-team-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ntl-team-info {
    flex: 1;
}

.ntl-team-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ntl-team-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
    font-size: 13px;
    color: #666;
}

.ntl-team-league {
    color: #0073aa;
    font-weight: 500;
}

.ntl-team-captain,
.ntl-team-date {
    font-size: 12px;
    color: #888;
}

.ntl-activity-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.ntl-activity-badge--new {
    background: #4CAF50;
    color: white;
}

.ntl-activity-badge--pending {
    background: #FF9800;
    color: white;
}

/* =====================================
   AREA MANAGER - RECENT SCORES
===================================== */

.ntl-recent-scores-table {
    overflow-x: auto;
}

.ntl-recent-scores-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ntl-recent-scores-table thead {
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.ntl-recent-scores-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ntl-recent-scores-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.ntl-recent-scores-table tbody tr:hover {
    background: #f9f9f9;
}

.ntl-recent-scores-table tbody tr:last-child td {
    border-bottom: none;
}

/* =====================================
   MY TEAM - COMPACT LAYOUT
===================================== */

.ntl-team-header-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: linear-gradient(135deg, #1a1a1a 0%, #cc0000 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 120px;
}

.ntl-team-logo {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.ntl-team-logo img {
    height: 80px;
    width: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ntl-team-header-info {
    flex: 1;
}

.ntl-team-header-info h3 {
    margin: 0 0 12px 0;
    color: white;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.ntl-team-role-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ntl-team-id {
    margin: 0;
    font-size: 18px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ntl-team-id strong {
    display: inline-block;
    background: white;
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ntl-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ntl-action-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #cc0000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ntl-action-card h4 {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.ntl-section-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ntl-section-card h4 {
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #cc0000;
    font-size: 16px;
    color: #1a1a1a;
}

.ntl-roster-table {
    overflow-x: auto;
    margin-top: 15px;
}

.ntl-roster-table table {
    width: 100%;
    border-collapse: collapse;
}

.ntl-roster-table th {
    text-align: left;
    padding: 12px 10px;
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
}

.ntl-roster-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.ntl-roster-table tbody tr:last-child td {
    border-bottom: none;
}

.ntl-roster-table tbody tr:hover {
    background: #f8f9fa;
}

.ntl-role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ntl-role-captain {
    background: #cc0000;
    color: white;
}

.ntl-role-co-captain {
    background: #ffc107;
    color: #1a1a1a;
}

.ntl-role-member {
    background: #e0e0e0;
    color: #555;
}

.ntl-action-buttons {
    white-space: nowrap;
}

/* =====================================
   WPUF FORM CUSTOMIZATION
===================================== */

.first_name.wpuf-col-half:before {
    content: '';
    display: block;
    clear: both;
}

.iti {
    width: 100%;
}

.wpuf-multistep-fieldset {
    width: 800px;
    max-width: 95%;
    background-color: white;
    border-radius: 20px;
    margin: 0 auto;
    padding: 20px;
}

body fieldset.wpuf-multistep-fieldset button.wpuf-multistep-next-btn.btn.btn-primary {
    position: absolute;
    bottom: 20px;
    left: calc(50% - 74px);
    width: 188px;
}

.wpuf-el.custom_html h2 {
    margin-bottom: 0px;
}

body fieldset.wpuf-multistep-fieldset button.wpuf-multistep-prev-btn.btn.btn-primary {
    bottom: 20px;
    left: 20px;
    background-color: transparent;
    color: black;
    text-decoration: underline;
    padding: 0px;
    font-size: 16px !important;
}

body fieldset.wpuf-multistep-fieldset button.wpuf-multistep-prev-btn.btn.btn-primary::before {
    content: "\f341";
    font-family: dashicons;
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    line-height: 1;
}

body #form-preview-stage.wpuf-style ul.wpuf-form .wpuf-submit input[type=submit], 
body .wpuf-form-add.wpuf-style ul.wpuf-form .wpuf-submit input[type=submit] {
    display: none;
}

body #form-preview-stage.wpuf-style ul.wpuf-form .wpuf-submit input[type=submit]:disabled, 
body .wpuf-form-add.wpuf-style ul.wpuf-form .wpuf-submit input[type=submit]:disabled {
    background: #dddddd !important;
    border-color: #dddddd !important;
    color: #000 !important;
}

body .wpuf-form .wpuf-multistep-progressbar ul.wpuf-step-wizard li::after {
    border-left-color: #E4E4E4;
    border-width: 25px;
    margin-top: -41px;
    right: -48px;
    z-index: 99;
}

.wpuf-el.custom_html_2 {
    width: 33%;
    float: left;
}

.select2-container--default .select2-selection--single {
    padding-top: 7px;
    padding-bottom: 7px;
}

.select2-container .select2-selection--single {
    height: 44px !important;
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 768px) {
    .ntl-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .ntl-member-table {
        font-size: 13px;
    }
    
    .ntl-member-table th,
    .ntl-member-table td {
        padding: 8px 6px;
    }
    
    .ntl-member-actions button {
        display: block;
        width: 100%;
        margin-bottom: 6px;
    }
    
    .ntl-my-team input[type="text"],
    .ntl-my-team input[type="email"],
    .ntl-my-team input[type="number"] {
        max-width: 100%;
    }

    .ntl-recent-team-item,
    .ntl-news-item {
        flex-direction: column;
    }
    
    .ntl-team-logo-small,
    .ntl-news-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .ntl-team-meta {
        flex-direction: column;
        gap: 5px;
    }

    .ntl-activity-item {
        flex-wrap: wrap;
    }
    
    .ntl-activity-date {
        width: 100%;
        margin-top: 5px;
        padding-left: 42px;
    }

    .ntl-activity-icon--image {
        width: 35px;
        height: 35px;
    }
    
    .ntl-activity-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2em;
    }

    .ntl-activity-badge {
        display: block;
        width: fit-content;
        margin-bottom: 5px;
    }

    .ntl-quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .ntl-team-header-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .ntl-team-header-info h3 {
        font-size: 26px;
    }
    
    .ntl-team-id {
        justify-content: center;
    }
    
    .ntl-section-card {
        padding: 20px 15px;
    }
}

@media (max-width: 600px) {
    .ntl-member-table thead {
        display: none;
    }
    
    .ntl-member-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    .ntl-member-table td {
        display: block;
        text-align: left;
        padding: 8px 12px;
        border-bottom: 1px solid #eee;
    }
    
    .ntl-member-table td:before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        margin-right: 10px;
    }
    
    .ntl-member-table td:last-child {
        border-bottom: none;
    }
    
    .ntl-member-actions {
        white-space: normal;
    }
}

.ntl-input-group input[type="file"] {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    min-width: 0;
}

/* Stack file upload on smaller containers */
@media (max-width: 480px) {
    .ntl-action-card .ntl-input-group {
        flex-direction: column;
    }
    
    .ntl-action-card .ntl-input-group input[type="file"] {
        width: 100%;
    }
    
    .ntl-action-card .ntl-btn-small {
        width: 100%;
    }
}

/* =====================================
   HEADER ACCOUNT WIDGET
===================================== */

.ntl-header-account {
    position: relative;
    display: inline-block;
    font-size: 16px;
}

/* Logged Out State */
.ntl-header-account--logged-out {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ntl-header-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.ntl-header-link:hover {
    text-decoration: underline;
}

.ntl-header-separator {
    color: #999;
}

/* Logged In State */
.ntl-header-greeting {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
    font-weight: 600;
    color: #ffffff;
    user-select: none;
    display: inline-block;
        font-weight: bold;
}

.ntl-header-greeting:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #cc0000;
}

/* Dropdown Menu - IMPORTANT: Hidden by default */
.ntl-header-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    display: block !important; /* Override any display:none */
}

/* Show dropdown on hover */
.ntl-header-account--logged-in:hover .ntl-header-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.ntl-header-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
    white-space: nowrap;
}

.ntl-header-dropdown a:first-child {
    border-radius: 6px 6px 0 0;
}

.ntl-header-dropdown a:hover {
    background: #f8f9fa;
}

.ntl-header-dropdown .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #666;
    flex-shrink: 0;
}

.ntl-dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 4px 0;
}

.ntl-logout-link {
    color: #cc0000 !important;
    border-radius: 0 0 6px 6px;
}

.ntl-logout-link:hover {
    background: #fff5f5 !important;
}

.ntl-logout-link .dashicons {
    color: #cc0000;
}

/* Responsive */
@media (max-width: 768px) {
    .ntl-header-account {
        font-size: 14px;
    }
    
    .ntl-header-dropdown {
        right: -10px;
    }
}

/* View All Scores Link */
.ntl-view-all-link {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.ntl-view-all-link:hover {
    color: #cc0000;
    text-decoration: underline;
}

/* Choices.js Custom Styling */
.choices {
    margin-bottom: 0;
}

.choices__inner {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    min-height: 44px;
    font-size: 14px;
}

.choices__inner:focus,
.is-focused .choices__inner {
    border-color: #cc0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.choices__input {
    background-color: transparent;
    font-size: 14px;
    padding: 0;
    margin-bottom: 0;
}

.choices__input::placeholder {
    color: #999;
}

.choices__list--dropdown {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 4px;
}

.choices__list--dropdown .choices__item {
    padding: 10px 12px;
    font-size: 14px;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #cc0000;
    color: #fff;
}

.choices__list--single .choices__item {
    padding: 0;
}

.choices__placeholder {
    color: #999;
    opacity: 1;
}

/* Search input inside dropdown */
.choices__list--dropdown .choices__input {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.choices[data-type*="select-one"] .choices__input {
    margin: 0;
    border: none;
    border-radius: 0;
    background: #f8f9fa;
    padding: 10px 12px;
}

/* Dropdown arrow */
.choices[data-type*="select-one"]::after {
    border-color: #999 transparent transparent transparent;
    right: 12px;
    top: 50%;
    margin-top: -2px;
}

.choices[data-type*="select-one"].is-open::after {
    border-color: transparent transparent #999 transparent;
    margin-top: -6px;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted, .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background: black !important;
}

@media (max-width: 600px) {
    .ntl-btn {
        font-size: 16px !important;
            display: block;
    }

}

@media (max-width: 768px) {
    .fl-tabs-panel-content.fl-tab-active {
        padding-top: 24px;
    }
 .ntl-reg-mode-selector {
        grid-template-columns: 1fr !important;
    }

}