
     refresh-permissions-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    color: #007bff;
}
        refresh-permissions-btn:hover {
    background-color: #f8f9fa;
}



refresh-permissions-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

        .refresh-permissions-btn:active {
            transform: scale(0.95);
        }
        
        .refresh-permissions-btn i {
            font-style: normal;
        }   
	   .alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
	    :root {
            --primary: #4a6bff;
            --secondary: #f8f9fa;
            --success: #28a745;
            --danger: #dc3545;
            --warning: #ffc107;
            --info: #17a2b8;
            --dark: #343a40;
            --light: #f8f9fa;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f5f5f5;
            color: #333;
        }
        
        /* Login Page Styles */
        .login-container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        
        .login-box {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
            padding: 40px;
            width: 400px;
            text-align: center;
        }
        
        .login-box h2 {
            margin-bottom: 20px;
            color: var(--primary);
        }
        
        .login-box input {
            width: 100%;
            padding: 12px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }
        
        .login-btn {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            width: 100%;
            transition: background-color 0.3s;
        }
        
        .login-btn:hover {
            background-color: #3a5bef;
        }
        
        /* Main App Styles (after login) */
        .app-container {
           display: block;
            min-height: 100vh;
        }
        
        .container {
            display: flex;
            min-height: 100vh;
        }
        
        /* Sidebar */
        .sidebar {
            width: 250px;
            background-color: var(--dark);
            color: white;
            padding: 20px 0;
        }
        
        .sidebar-header {
            padding: 0 20px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .sidebar-header h3 {
            color: var(--primary);
            margin: 0;
        }
        
        .sidebar-menu {
            padding: 20px 0;
        }
        
        .menu-item {
            padding: 12px 20px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            font-size: 0.95rem;
        }
        
        .menu-item:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        .menu-item.active {
            background-color: var(--primary);
        }
        
        .menu-item i {
            margin-right: 10px;
            font-size: 1.1rem;
        }
        
        /* Main Content */
        .main-content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
        }
        
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #ddd;
        }
        
        .header h1 {
            margin: 0;
            font-size: 1.8rem;
            color: var(--dark);
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .user-info span {
            font-weight: 500;
        }
        
        /* Dashboard Cards */
        .dashboard-cards {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .card {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 20px;
            transition: transform 0.3s;
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .card-title {
            font-size: 0.9rem;
            color: #6c757d;
            margin: 0;
            font-weight: 500;
        }
        
        .card-value {
            font-size: 1.5rem;
            font-weight: bold;
            margin: 0;
            color: var(--dark);
        }
        
        .card-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
        }
        
        .card-icon.blue {
            background-color: var(--primary);
        }
        
        .card-icon.green {
            background-color: var(--success);
        }
        
        .card-icon.orange {
            background-color: var(--warning);
        }
        
        .card-icon.red {
            background-color: var(--danger);
        }
        
        /* Tables */
        .table-container {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 1px;
            margin-bottom: 20px;
            overflow-x: auto;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.9rem;
        }
        
        th, td {
           /* padding: 12px 15px;*/
		 /*  imtiyaz*/
		    padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }
        
        th {
            background-color: #f8f9fa;
            font-weight: 600;
            color: var(--dark);
        }
        
        tr:hover {
            background-color: #f5f5f5;
        }
        
        tr.winner-row {
            background-color: #fff3cd;
            font-weight: bold;
        }
        
        /* Forms */
        .form-container {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 20px;
            max-width: 600px;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            color: var(--dark);
        }
        
        .form-group input, 
        .form-group select, 
        .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 0.9rem;
        }
        
        .btn {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 10px 17px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            transition: background-color 0.2s;
        }
        
        .btn:hover {
            background-color: #3a5bef;
        }
        
        .btn-secondary {
            background-color: #6c757d;
        }
        
        .btn-secondary:hover {
            background-color: #5a6268;
        }
        
        .btn-danger {
            background-color: var(--danger);
        }
        
        .btn-danger:hover {
            background-color: #c82333;
        }
        
        .btn-success {
            background-color: var(--success);
        }
        
        .btn-success:hover {
            background-color: #218838;
        }
        
        .action-buttons {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }
        
        .status-badge {
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .status-upcoming {
            background-color: #fff3cd;
            color: #856404;
        }
        
        .status-ongoing {
            background-color: #d4edda;
            color: #155724;
        }
        
        /* Windows Activation */
        .windows-activation {
            background-color: white;
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            margin-top: 20px;
        }
        
        .windows-activation p {
            margin: 0 0 10px 0;
            color: #6c757d;
        }
        
        .progress-bar {
            width: 100%;
            height: 20px;
            background-color: #e9ecef;
            border-radius: 10px;
            overflow: hidden;
        }
        
        .progress {
            height: 100%;
            background-color: var(--success);
            color: white;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        
        /* Responsive */
        @media (max-width: 1200px) {
            .dashboard-cards {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
                height: auto;
            }
            
            .dashboard-cards {
                grid-template-columns: 1fr;
            }
        }
		
		/* Add these new styles for player details modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            display: none;
        }
        
 /*       .modal-content {
            background-color: white;
            border-radius: 8px;
            padding: 20px;
            width: 90%;
            max-width: 800px;
            max-height: 80vh;
            overflow-y: auto;
        }*/
        .modal-content {
    background-color: white;
    border-radius: 8px;
    padding: 27px;
    width: 90%;
    max-width: 700px;
   /* height: 750px;  600px ka fixed height */
   height: 778px; 
    overflow-y: auto;
}
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2px;
            padding-bottom: 1px;
            border-bottom: 1px solid #ddd;
        }
        
        .modal-title {
            margin: 0;
            font-size: 1.5rem;
            color: var(--primary);
        }
        
        .close-modal {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #6c757d;
        }
        
        .player-details-table {
            width: 100%;
            margin-bottom: 20px;
        }
        
        .player-details-table th {
            text-align: left;
            padding: 8px;
            background-color: #f8f9fa;
        }
        
        .player-details-table td {
            padding: 8px;
            border-bottom: 1px solid #ddd;
        }
        
        .player-races-table {
            width: 100%;
            margin-top: 20px;
        }
        
        .player-races-table th {
            background-color: #f8f9fa;
            padding: 10px;
            text-align: left;
        }
        
        .player-races-table td {
            padding: 10px;
            border-bottom: 1px solid #ddd;
        }
        
        .winner-badge {
            background-color: #d4edda;
            color: #155724;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
        }
		
a {
    text-decoration: none;
}












.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: #f2f2f2;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}
.pagination a.active {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
}
.pagination a:hover {
    background-color: #ddd;
}
/*.table-container {
    margin-top: 20px;
}*/
input[type="text"] {
    padding: 6px;
}
button[type="submit"] {
    padding: 2px 7px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
}



  .dataTables_wrapper .dataTables_filter input {
    padding: 5px;
    margin-left: 25px;
  }

  .dataTables_wrapper .dataTables_paginate {
    margin-top: 10px;
  }
  .btn {
    display: inline-block;
    margin-bottom: 4px;
}

.btn + .btn {
    margin-left: 8px;
}





/* Active page number styling for DataTables pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background-color: #3B82F6 !important; /* Same as Edit button */
  color: white !important;
  border: 1px solid #3B82F6 !important;
  border-radius: 4px;
  font-weight: bold;
}

/* Hover effect for pagination buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background-color: #E0ECFF !important;
  border: 1px solid #3B82F6 !important;
  color: #3B82F6 !important;
}





/* DataTables Pagination Styling */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    color: #4B5563;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #3B82F6 !important;
    color: white !important;
    border: 1px solid #3B82F6 !important;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #E0ECFF !important;
    border: 1px solid #3B82F6 !important;
    color: #3B82F6 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: #9CA3AF !important;
    background: transparent !important;
    border-color: #D1D5DB !important;
    cursor: default;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #Manager-table {
        display: block;
        overflow-x: auto;
    }
    
    #Manager-table td, 
    #Manager-table th {
        padding: 8px 6px;
        font-size: 0.85rem;
    }
    
    /* Action buttons */
    #Manager-table td:last-child {
        white-space: nowrap;
        display: flex;
        gap: 5px;
    }
    
    #Manager-table .btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    /* Permissions display on mobile */
    .permission-chunk {
        flex-direction: column;
        gap: 3px;
    }
    
    .permission-badge {
        font-size: 0.7rem;
    }
}


