@import "common.css";

.captain-dashboard-section {
    font-family: var(--f2);
    background: var(--bg2);
}

/* Sidebar */
.sidebar {
    width: 260px;
    height: 100vh;
    /* background: var(--bg); */
    /* border-right: 1px solid var(--border-color); */
    position: sticky !important;
    top: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--p);
}

.dashboard-title {
    color: var(--p);
}

.nav-link {
    color: #94a3b8;
    padding: 12px 20px;
    border-radius: 4px;
    transition: 0.3s;
}

.nav-link.active {
    background: rgba(0, 188, 212, 0.1);
    color: var(--p);
    border-left: 3px solid var(--p);
}

.logo img{
    height: 60px;   width: auto;
}

.custom-search-input,
.custom-search-input:focus,
.custom-search-input:active {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #fff;
    background: transparent;
}
.custom-search-input:focus,
.custom-search-input:active {
    background: #19232b;
    color: #fff;
}
.custom-search-input::placeholder {
    color: #b0b9be !important;
    opacity: 1;
}

/* Common Layout Components */
.stat-card,
.section-card,
.reg-item,
.list-item {
    background: var(--bg2);
    /* border: 1px solid var(--border-color); */
    padding: 20px;
}

/* Notched Corners Geometry */
.notched {
    clip-path: polygon(0 0, 92% 0, 100% 25%, 100% 100%, 0 100%);
}

.btn-cyan {
    background: var(--p);
    color: #000;
    font-weight: bold;
    border: none;
}

/* Badges */
.badge {
    font-size: 0.7rem;
    border-radius: 20px;
    padding: 4px 10px;
}
.badge-green {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}
.badge-red {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}
.badge-blue {
    background: rgba(59, 130, 246, 0.2);
    color: var(--p);
    border: 1px solid #3b82f6;
}
.badge-orange {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

/* List Styles */
.list-item,
.reg-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.active-border {
    border-left: 4px solid #22c55e;
}

/* Table Styling */
.custom-table {
    font-size: 0.9rem;
}
.custom-table thead th {
    color: #ffffff;
    font-weight: 500;
    border-bottom: 2px solid var(--border-color);
}
.custom-table tbody td {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 10px;
}

/* Chart Section */
.chart-section {
    background: #020b0d;
    border: 1px solid var(--border-color);
    min-height: 400px;
}


   /* Local-only styles for the 4 metric cards */
   .match-metrics .metric-card {
  
    padding: 22px 18px;
 
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}
.match-metrics .metric-label {
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-bottom: 6px;
}
.match-metrics .metric-value {
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

  /* Local-only styles for All Matches table */
  .matches-table-wrap {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(26, 58, 68, 0.65);
    background: linear-gradient(180deg, rgba(6, 20, 27, 0.25) 0%, rgba(6, 20, 27, 0) 100%);
}
.matches-table {
    margin: 0;
}
.matches-table thead th {
    font-weight: 600;
    color: #dbe6ea;
    border-bottom: 1px solid rgba(26, 58, 68, 0.75) !important;
    padding: 18px 18px;
    background: rgba(6, 20, 27, 0.35);
}
.matches-table tbody td {
    padding: 18px 18px;
    border-bottom: 1px solid rgba(26, 58, 68, 0.55) !important;
    color: #cbd5e1;
}
.matches-table tbody tr:hover td {
    background: rgba(0, 188, 212, 0.06);
}
.result-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.result-pill.won {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
}
.result-pill.lost {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
}
.action-eye {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(6, 20, 27, 0.25);
    text-decoration: none;
}
.action-eye:hover {
    color: #00bcd4;
    border-color: rgba(0, 188, 212, 0.35);
    background: rgba(0, 188, 212, 0.08);
}
.matches-footer {
    padding: 14px 18px;
    background: rgba(0, 188, 212, 0.06);
    border-top: 1px solid rgba(26, 58, 68, 0.55);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pager {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pager .page-dot {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #94a3b8;
}
.pager .page-current {
    color: #ffffff;
    font-weight: 700;
    min-width: 12px;
    text-align: center;
}
.pager .page-dot.active {
    border-color: rgba(0, 188, 212, 0.6);
    color: #00bcd4;
}

.sticky-top{
    position:sticky;top:0;z-index:1020;background: var(--bg2);box-shadow:0 2px 6px rgba(0,0,0,0.07);

}

/* Card Container */
.tr-card {
    background-color: #071a21; /* Dark teal from image */
    border: 1px solid #1a3a44;
    border-radius: 24px; /* Soft rounded corners */
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.profile-subtitle{
    color: #94a3b8;
}

.tr-card:hover{

        background: linear-gradient(145deg, #0c2a3a 0%, #05212b 100%);
    border-color: var(--p);
    color: #e0f7ff;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 188, 212, 0.18),
                inset 0 1px 0 rgba(255,255,255,0.08),
                inset 0 -1px 2px rgba(0,0,0,0.4);
}

/* Image Wrapper with specific cropping */
.tr-image-wrapper {
    width: 100%;
    /* height: 180px; */
    overflow: hidden;
    padding: 10px; /* Inset padding for the image card look */
}

.tr-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 88px;
    object-position: center;
    border: 1px solid #dddddd0f;
}

/* Typography */
.tr-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tr-date {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.tr-value {
    color: var(--p); /* Brand cyan */
    font-weight: 700;
    font-size: 1.1rem;
}

/* Button Variations with Notched Geometry */
.btn-tr-outline {
    background: transparent;
    color: var(--p);
    border: 1px solid #1a3a44;
    padding: 8px 12px;
    font-weight: 600;
    /* clip-path: polygon(0 0, 92% 0, 100% 30%, 100% 100%, 0 100%); */
    border-radius: 84px;
    font-family: 'SpaceGrotesk';
}

.btn-tr-filled {
    background-color: var(--p);
    color: #000;
    border: none;
    padding: 8px 12px;
    font-weight: 600;
    /* Matches notched geometry of outlines */
    /* clip-path: polygon(0 0, 92% 0, 100% 30%, 100% 100%, 0 100%); */
    border-radius: 84px;
    font-family: 'SpaceGrotesk';
}

.btn-tr-outline:hover {
    background: rgba(0, 188, 212, 0.05);
    border-color: #00bcd4;
}


/* Typography */
.dashboard-title {
    color: var(--p);
    font-weight: 700;
    font-size: 1.75rem;
}

.dashboard-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Main Table Card */
.dashboard-card-wrap {
    background-color: var(--bg2);
    border: 1px solid var(--border-color);
    border-radius: 24px; /* Matches the soft rounded dashboard look */
    overflow: hidden;
}

/* Table Design */
.players-table {
    --bs-table-bg: transparent;
    border-collapse: separate;
}

.players-table thead th {
    background-color: rgba(0, 0, 0, 0.25);
    color: #64748b;
    font-size: 0.8rem;
    text-transform: capitalize;
    font-weight: 600;
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-color);
}

.players-table tbody td {
    color: #ffffff;
    padding: 18px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.j-number { color: rgba(255, 255, 255, 0.5); font-weight: 700; }

/* Status & Rating Pill */
.rating-pill {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Header Button */
.btn-cyan-pill {
    background-color: var(--p);
    color: #000;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    transition: opacity 0.2s;
}

/* Footer & Pagination */
.dashboard-footer {
    background-color: rgba(0, 0, 0, 0.3);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: #64748b;
    font-size: 0.8rem;
}

.page-arrow.active {
    border-color: var(--p);
    color: var(--p);
}

.page-number {
    color: #fff;
    font-weight: 700;
}


/* Color Palette */
:root {
    --modal-bg: #0b1e24; /* Deep teal from reference */
    --input-bg: #071a21;
    --cyan: #00bcd4;
    --border: #1a3a44;
}

.text-cyan { color: var(--p); }

/* Modal Container */
.custom-modal-bg {
    background-color: var(--border);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px;
}

.dropdown-item:focus, .dropdown-item:hover {
    color: var(--bs-dropdown-link-hover-color);
    background-color: var(--bg2);
    border-radius: 30px;
}

/* Custom Form Controls */
.custom-input {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--border) !important;
    /* border-radius: 30px !important;  */
    color: #fff !important;
    padding: 12px 20px;
}

.custom-input::placeholder {
    color: #64748b;
}

/* Select Dropdown Arrow Color */
.form-select.custom-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* Upload Box Styling */
.upload-box {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background-color: var(--input-bg);
}

.upload-box label {
    cursor: pointer;
    color: #fff;
    text-decoration: underline;
}

/* Button Variations */
.btn-cyan-pill {
    background-color: var(--p);
    color: #000;
    border-radius: 30px;
    font-weight: 700;
    border: none;
}

.btn-cyan-pill:hover {
    color: var(--p);
    border: 1px solid #d5a974;

}

.btn-outline-custom {
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 30px;
    background: transparent;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}






/* Data Points */
.info-label {
    color: var(--muted-text-color);
    display: block;
    margin-bottom: 4px;
}

.info-value {
    color: var(--text-color);
    font-weight: 500;
}

/* Avatar and Pills */
.profile-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.status-pill-enabled {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Buttons */
.btn-edit-profile {
    background-color: var(--p);
    color: #000;
    font-weight: 700;
    border-radius: 20px;
    padding: 8px 24px;
    border: none;
}

.btn-delete-account {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    padding: 8px 24px;
    font-weight: 700;
}

.border-bottom-teal {
    border-bottom: 1px solid var(--border-color);
}