   /* Modal Styling */
   #summaryModal, #keywordsModal {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -20%);
    width: 60%;
    max-height: 70%;
    overflow-y: auto;
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    z-index: 1000;
    cursor: move;
}

.modal-header, .modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#modalEditor, #modalKeywords, #applicationContent {
    height: 300px;
    overflow-y: auto;
}

.hidden {
    display: none !important;
}
#summaryModal .modal-header, #keywordsModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Updated styles for horizontal alignment */
.input-group {
display: flex;
align-items: center;
gap: 10px; /* Adds space between the input and the button */
margin-bottom: 8px;
}

.input-group input {
flex: 1;
}

.input-group button {
flex-shrink: 0;
}

/* Control buttons in a single row */
#controlButtons {
display: flex;
gap: 10px;
margin-top: 10px;
}

/* Horizontal alignment for input and button */
.input-group-row {
display: flex;
align-items: center;
margin-bottom: 8px;
}

.input-group-row input {
flex: 0 0 70%; /* Make input 70% width */
}

.input-group-row button {
flex: 0 0 30%; /* Make button 30% width */
}



/* <!-- .....................Custom Context Menu started .....................--> */

/* Custom Context Menu Styling */
#customContextMenu {
    position: absolute;
    display: none;
    background: #333;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
#customContextMenu button {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background: #444;
    border: none;
    color: #fff;
    border-radius: 3px;
    margin-bottom: 5px;
}
#customContextMenu button:hover {
    background: #007bff;
}

#applicationContent {
position: relative; /* Make this the containing block for absolutely positioned children */
}

#loadingSpinner {
display: none; /* Initially hidden */
position: absolute; /* Position relative to #applicationContent */
top: 50%; /* Center vertically */
left: 50%; /* Center horizontally */
transform: translate(-50%, -50%); /* Adjust for exact center */
z-index: 1000; /* Ensure it appears above other elements within #applicationContent */
}
/* <!-- .....................Custom Context Menu ended .....................--> */

/* Modal Styling */
#applicationModal {
    display: none;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 50%; /* Initial width */
    max-width: 90%; /* Max width constraint */
    height: auto;
    max-height: 90%; /* Max height constraint */
    overflow-y: auto; /* Scrolling for overflow content */
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#applicationModal:hover {
    outline: 2px dashed #007bff; /* Highlight border when hovered */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

.close-btn {
    cursor: pointer;
    font-size: 20px;
    background: none;
    border: none;
}
.modal-controls {
display: flex;
gap: 5px;
}

.modal-btn {
background: none;
border: none;
font-size: 16px;
cursor: pointer;
padding: 0 5px;
}

.modal-btn:hover {
color: #007bff;
}


.container {
    margin-top: 30px;
}




/* Table Title Styling */
.table-title {
font-size: 16px;
font-weight: bold;
color: #ffffff;
background: linear-gradient(45deg, #6a11cb, #2575fc);
padding: 8px;
border-radius: 5px;
margin-top: 1em;
}

/* Table Styling */
.affiliate-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 2em;
}

.affiliate-table thead {
background-color: #f8f9fa;
color: #495057;
font-weight: bold;
}

.affiliate-table th,
.affiliate-table td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #dee2e6;
}

/* Wrap URL column text */
.url-column {
word-wrap: break-word;
word-break: break-all;
white-space: normal;
max-width: 250px; /* Adjust as needed for your layout */
}

.affiliate-table tr:hover {
background-color: #f1f1f1;
}

/* Button Styling */
.btn {
border: none;

padding: 8px 12px;
font-size: 0.9em;

cursor: pointer;
transition: background-color 0.3s;
background: linear-gradient(45deg, #027d8a, #2575fc);
border-radius: 10px;
color: #fff;
}

.btn:hover {
background: linear-gradient(45deg, #0056b3, #003d7e);
}

.btn-summary {
background-color: #007bff;
}

.btn-summary:hover {
background-color: #0056b3;
}

.btn-keywords {
background-color: #28a745;
}

.btn-keywords:hover {
background-color: #218838;
}

.btn-application {
background-color: #fd7e14;
}

.btn-application:hover {
background-color: #e67300;
}







.card {
transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}




body.dark-mode {
background-color: #121212;
color: #e0e0e0;
}

.card.dark-mode {
background-color: #1e1e1e;
}

.btn.dark-mode {
background: linear-gradient(45deg, #333, #555);
}


/* Floating Button Styling */
.float-button {
position: fixed;
bottom: 20px;
right: 20px;
background-color: #000;
color: #fff;
font-size: 20px;
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
z-index: 1000;
text-decoration: none;
transition: background-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
opacity: 0; /* Initially hidden */
visibility: hidden; /* Prevent interaction when hidden */
pointer-events: none; /* Disable pointer events when hidden */
}

.float-button.show {
opacity: 1; /* Show button */
visibility: visible; /* Make visible */
pointer-events: auto; /* Enable pointer events */
}

.float-button:hover {
background-color: #555;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.float-button i {
font-size: 24px;
}

html {
scroll-behavior: smooth;
}

/* Reduced width for page container */
#pageContainer.reduced-width {
width: 70%; /* Adjust as per your requirement */
margin: auto;
transition: width 0.3s ease;
}

/* Reduced width for applicationModal */
#applicationModal.reduced-width {
width: 50%; /* Adjust as per your requirement */
max-width: 50%; 
transition: width 0.3s ease;
}

/* Increase gap between left menu and right content */
#pageContainer {
margin-left: 260px; /* Adjust this value to increase the gap */
padding-left: 20px; /* Optional: Add more spacing inside the container */
transition: margin-left 0.3s ease; /* Smooth transition for responsiveness */
}

/* Ensure the left menu stays fixed */
#leftMenu {
position: fixed;
width: 240px; /* Keep width consistent with the gap */
height: 100%; /* Full height */
top: 0;
left: 0;
background-color: #f8f9fa; /* Or your menu background color */
z-index: 1000; /* Ensure it stays above other content */
}