body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 20px;
    color: #333;
}

.project-list-container {
    max-width: 100%; /* Full width */
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow-x: auto; /* Add horizontal scroll for small screens */
}

h1 {
    text-align: center;
    color: rgb(133, 183, 37); /* Primary color */
    font-size: 2.5em;
    margin-bottom: 30px;
}

.project-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9em;
    text-align: center;
}

.project-list-table th,
.project-list-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #ddd;
}

.project-list-table th {
    background-color: rgb(133, 183, 37); /* Primary color */
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.95em;
}

.project-list-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.project-list-table tr:hover {
    background-color: rgba(133, 183, 37, 0.15);
    cursor: pointer;
}

.project-list-table a {
    color: rgb(133, 183, 37); /* Primary color */
    text-decoration: none;
    font-weight: bold;
}

.project-list-table a:hover {
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
    flex-wrap: wrap; /* Make pagination wrap on small screens */
}

.pagination ul {
    display: flex;
    gap: 10px;
}
.pagination li {
    list-style: none;
    margin: 0 5px;
}

.pagination a {
    padding: 8px 12px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
}

.pagination a:hover {
    background-color: rgb(133, 183, 37);
    color: #fff;
}

.pagination .current {
    padding: 8px 12px;
    color: #fff;
    background-color: rgb(133, 183, 37);
    border: 1px solid rgb(133, 183, 37);
    border-radius: 4px;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-list-table th,
    .project-list-table td {
        font-size: 0.85em; /* Reduce font size */
        padding: 10px 12px; /* Adjust padding */
    }

    h1 {
        font-size: 1.8em; /* Smaller title font size */
    }
}



/* General Button Styling */


.kwo-action-button-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
}

.action-button {
    background-color: #007bff; /* Primary blue */
    color: #ffffff; /* White text */
    border: none;
    border-radius: 5px; /* Rounded corners */
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Hover Effect */
.action-button:hover {
    background-color: #0056b3; /* Darker blue for hover */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Disabled Button */
.action-button:disabled {
    background-color: #cccccc; /* Greyed-out */
    color: #666666; /* Darker grey text */
    cursor: not-allowed;
    box-shadow: none; /* Remove shadow for disabled buttons */
}

/* Different Status Colors */
.action-button[data-status="2"] {
    background-color: #28a745; /* Green for In Progress */
}

.action-button[data-status="3"] {
    background-color: #ffc107; /* Yellow for On Hold */
}

.action-button[data-status="4"] {
    background-color: #dc3545; /* Red for Cancel */
}

.action-button[data-status="6"] {
    background-color: #17a2b8; /* Teal for Done */
}

/* Hover Effects for Different Status Colors */
.action-button[data-status="2"]:hover {
    background-color: #218838; /* Darker green for hover */
}

.action-button[data-status="3"]:hover {
    background-color: #e0a800; /* Darker yellow for hover */
}

.action-button[data-status="4"]:hover {
    background-color: #c82333; /* Darker red for hover */
}

.action-button[data-status="6"]:hover {
    background-color: #138496; /* Darker teal for hover */
}

/* Container Alignment */
td .action-button {
    margin-right: 5px; /* Add spacing between buttons */
}



/* Disabled Button */
.action-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    box-shadow: none;
}

#project_status {
    position: relative;
}

/* Loader Styling */
.kw-cell-loader {
    position: absolute;
    display: inline-block;
    width: 30px;
    height: 30;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #007bff;
    animation: spin 1s linear infinite;
    right: 27px;
    top: 26px;
}

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





/* approal form */



/* Full-Screen Overlay */
#approval-form-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    background: rgba(0, 0, 0, 0.7); /* Black overlay with transparency */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above other elements */
    overflow: hidden; /* Prevent scrolling while popup is open */
    animation: overlayFadeIn 0.3s ease-in-out; /* Smooth fade-in */
}

/* Popup Content */
.approval-popup-content {
    background: #fff;
    border-radius: 12px;
    width: 450px;
    max-width: 90%;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    animation: popupFadeIn 0.3s ease-in-out;
    position: relative; /* For close button positioning */
}

/* Header */
.approval-popup-content h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: rgb(133, 183, 37); /* Match primary color */
}

/* Paragraph */
.approval-popup-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

/* Checkbox Container */
.checkbox-container {
    text-align: left;
    margin-bottom: 20px;
}

.checkbox-container label {
    display: block;
    font-size: 1rem;
    margin-bottom: 10px;
    cursor: pointer;
    color: #333;
}

.checkbox-container input {
    margin-right: 10px;
    width: 15px;
    height: 15px;
}

/* Buttons */
.approval-popup-content button {
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

#send-approval-email {
    background: rgb(133, 183, 37); /* Match primary color */
    color: #fff;
}

#send-approval-email:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

#send-approval-email:hover:not(:disabled) {
    background: #91b52e; /* Slightly lighter shade */
    transform: scale(1.05);
}

#close-approval-popup {
    background: #f44336;
    color: #fff;
}

#close-approval-popup:hover {
    background: #d32f2f;
    transform: scale(1.05);
}

/* Close Button (Optional) */
.approval-popup-content .close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.25rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.approval-popup-content .close-popup:hover {
    color: #333;
}

/* Animations */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
