:root {
    --primary: #000000;
    --secondary: #4b5563;
    --accent: #f3f4f6;
    
    --dark: #f9fafb;
    --darker: #ffffff;
    --card: #ffffff;
    --text: #111827;
    --text-dim: #6b7280;
    --border: rgba(0, 0, 0, 0.1);
    --glow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--darker);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    background:
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0,0,0,0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.01) 0%, transparent 70%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.02) 2px,
            rgba(0,0,0,0.02) 4px
        );
    pointer-events: none;
    z-index: 0;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 80%, rgba(0,0,0,0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(0,0,0,0.02) 0%, transparent 40%);
    animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.05),
        0 0 80px rgba(0,0,0,0.01),
        inset 0 -1px 0 rgba(0,0,0,0.05);
}



.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    align-items: center;
}

.logo .logo-text p {
    margin: 0;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}


.nav-link-custom {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link-custom:hover {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
}

.nav-link-custom.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}



.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 8px 0;
    display: none;
    flex-direction: column;
    z-index: 999;
}

.dropdown-menu a {
    padding: 10px 15px;
    color: var(--text);
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(0,0,0,0.05);
    color: var(--primary);
}


.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: flex;
}
/* Main Content */
main {
    padding: 3rem 0;
}

.section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;

}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title .icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #333333);
    border-radius: 10px;
    display: flex;
    align-items: center;
    color: white;
    fill: white;
    justify-content: center;
    font-size: 1.2rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #333333 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    color: white;
}

.btn-primary:active {
    transform: translateY(-1px);
}
.btn-secondary {
    background: linear-gradient(135deg, #ffffff, #f9fafb) !important;
    color: #1f2937;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: rgba(0, 0, 0, 0.2) !important;
   
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
        color: #1f2937 !important;
}


.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 
        0 4px 15px rgba(239, 68, 68, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 -2px 8px rgba(0, 0, 0, 0.1),
        inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(239, 68, 68, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 1.5rem;
}

.card {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.05),
        0 0 40px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 0, 0, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover {
    border-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 60px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover::after {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}


.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary) !important;
}

.btn-edit {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-view {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}
.btn-copy{
    background: #000000;
    color: white;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-live {
    background: rgb(0, 68, 37);
    color: #fff;
}

.badge-draft , .badge-scheduled{
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-dim);
}

.badge-closed ,  .badge-completed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.stat {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.01));
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
        cursor: pointer;
}

.stat:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.1),
        0 0 50px rgba(0, 0, 0, 0.05),
        inset 0 1px 2px rgba(255, 255, 255, 0.9),
        inset 0 -2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
}

/* Modal */

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 80px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2), transparent);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}


.modal-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text);
}
.modal-footer{
    border: none;
}

.btn-close{
    filter: invert(0);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    color: #1f2937;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}


.spreadsheet-container {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    overflow-x: auto;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.05),
        0 0 60px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.spreadsheet-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}

.data-table th {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
    color: #1f2937;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
    font-family: 'Space Mono', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.data-table th:first-child {
    border-top-left-radius: 10px;
}

.data-table th:last-child {
    border-top-right-radius: 10px;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    font-family: "Space Mono" !important;
    color: #1f2937;
    white-space: nowrap;
}

.data-table tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}


.data-table input {
    background: transparent;
    border: none;
    color: var(--text);
    width: 100%;
    padding: 0.25rem;
    font-family: "Space Mono" !important;

}

.data-table input:focus {
    outline: 1px solid var(--primary);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* CAM Pillars */
.cam-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.cam-card {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.05),
        0 0 40px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cam-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cam-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 0, 0, 0.02) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cam-card:hover::before {
    opacity: 1;
}

.cam-card:hover::after {
    transform: translateX(100%);
}

.cam-card:hover {
    border-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 80px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.cam-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), #333333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
    color: white;
    z-index: 1;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(0, 0, 0, 0.1),
        inset 0 -5px 20px rgba(0, 0, 0, 0.1),
        inset 0 5px 20px rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
}

.cam-card:hover .cam-icon {
    transform: scale(1.1) rotateY(180deg);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.25),
        0 0 60px rgba(0, 0, 0, 0.15),
        inset 0 -5px 20px rgba(0, 0, 0, 0.1),
        inset 0 5px 20px rgba(255, 255, 255, 0.4);
}

.cam-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.cam-description {
    color: var(--text-dim);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Tournament Bracket */
.bracket-container {
    background: linear-gradient(135deg, var(--card) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    overflow-x: auto;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.05),
        0 0 60px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.bracket {
    display: flex;
    gap: 3rem;
    min-width: max-content;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    /* min-width: 200px; */
}

.bracket-round-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bracket-match {
    background: linear-gradient(135deg, #f9fafb 0%, rgba(249, 250, 251, 0.95) 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.bracket-match:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.bracket-team {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bracket-team:last-child {
    border-bottom: none;
}

.bracket-team.winner {
    background: rgba(0, 0, 0, 0.03);
    font-weight: 700;
}

.bracket-team-name {
    flex: 1;
}

.bracket-team-score {
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    margin-left: 1rem;
}
.leaderboard {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
    font-family: "Space Mono";
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.05),
        0 0 60px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 80px 100px 1fr 100px 100px 100px 100px 120px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    align-items: center;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.leaderboard-item.header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
    color: #1f2937;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* 
.leaderboard-rank-public {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Space Mono', sans-serif;
}

.leaderboard-rank-public.rank-one { color: #f59e0b; }
.leaderboard-rank-public.rank-two { color: #6b7280; }
.leaderboard-rank-public.rank-three { color: #b45309; } */

.leaderboard-name {
    font-weight: 600;
}

.leaderboard-score {
    text-align: center;
    font-family: 'Space Mono', sans-serif;
    font-weight: 700;
}

.leaderboard-total {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 900;
}

/* Match PIN */
.pin-display {
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.05),
        0 0 60px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.pin-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    animation: pinShine 2s ease-in-out infinite;
}

@keyframes pinShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.pin-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pin-value {
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    letter-spacing: 8px;
    text-shadow: 0 0 20px var(--glow);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab:hover {
    color: var(--text);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* Import Zone */
.import-zone {
    background: #f9fafb;
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.import-zone:hover {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.01);
}

.import-zone-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.import-zone-text {
    font-size: 1.1rem;
    color: var(--text-dim);
}

.import-zone-text strong {
    color: var(--primary);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-success {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.message-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* Schedule View */
.schedule-grid {
    display: grid;
    gap: 1rem;
}

.schedule-item {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: "Space Mono";
    padding: 1rem;
    display: grid;
    grid-template-columns: 120px 1fr 240px;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.01);
}

.schedule-time {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

.schedule-match {
    flex: 1;
}

.schedule-match-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.schedule-match-teams {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.schedule-actions {
    display: flex !important;  
    gap: 0.5rem;                
    /* flex-wrap: wrap;             */
    align-items: center;       
    justify-content: normal;
}


/* Responsive */
@media (max-width: 1200px) {
    .cam-pillars {
        grid-template-columns: 1fr;
    }

    .leaderboard-item {
        grid-template-columns: 50px 1fr 80px 80px 80px 80px 100px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.5rem;
    }

    .leaderboard-item {
        grid-template-columns: 40px 1fr 60px 60px;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .leaderboard-item .leaderboard-score:nth-child(4),
    .leaderboard-item .leaderboard-score:nth-child(5),
    .leaderboard-item .leaderboard-score:nth-child(6) {
        display: none;
    }

    .bracket {
        gap: 1.5rem;
    }

    .bracket-round {
        min-width: 150px;
    }
}




.ag-header-cell-text {
    font-family: "Inter";
    /* font-size: 14px;
    color: #333; */
}
.ag-side-button-label{
    font-family: "Inter";
    font-weight: 600;
}

.btn-icon svg {
    vertical-align: middle;
}

/* .ag-theme-alpine .ag-header {
    background-color: #1f2937;
    color: #fff;
}

.ag-theme-alpine .ag-row {
    background-color: #f9fafb;
}

.ag-theme-alpine .ag-row:hover {
    background-color: #e5e7eb;
}

.ag-theme-alpine .ag-row-selected {
    background-color: #3b82f6 !important;
    color: #fff;
}

.ag-theme-alpine .ag-header-cell-menu-button {
    color: #fff;
}

.ag-theme-alpine .ag-floating-filter-input {
    background-color: #fff;
    color: #000;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 2px 4px;
} */


.notifications {
    display: grid;
    gap: 1rem;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

.notification-title {
    font-weight: 600;
    margin: 0;
    color: var(--text);

}

.notification-text {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin: 0;
}

.notification-time {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin: 0;
}


.text-muted{
    color: #6b7280 !important;
}

.events_grid .card-header{
    background-color: transparent !important;
}

/* Container for all event cards */
.events_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Always 3 cards per row on desktop/tablet */
    gap: 1rem;
    width: 100%;
}

/* Individual card */
.events_card {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%; /* full width inside grid column */
    display: flex;
    flex-direction: column;
}

/* Card header */
.events_card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.events_card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}
.events_card-header p {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.2rem;
}

/* Stats grid: all stats in one row */
.events_stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* always 4 stats in one row */
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Individual stat box */
.events_stats-grid .events_stat {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.01));
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.events_stat-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}
.events_stat-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

/* Card actions */
.events_card-actions {
margin-top: 0.75rem;
}
.events_card-actions button{
    font-size: 12px;
}

/* Responsive tweaks */
@media (max-width: 992px) {
    .events_grid {
        grid-template-columns: repeat(3, 1fr); /* still 3 per row for tablets */
    }
    .events_stats-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 stats per row */
    }
}

@media (max-width: 576px) {
    .events_grid {
        grid-template-columns: 1fr; /* 1 card per row on mobile */
    }
    .events_stats-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 stats per row for mobile */
    }
    .events_card-title {
        font-size: 0.95rem;
    }
    .events_stat-value {
        font-size: 1rem;
    }
}
.events_card-header svg{
    height: 14px;
    width: 14px;
}