/* saved-work.css */

/* Table Styling */
.sw-table {
    width: 100%;
    border-collapse: separate; /* Allows border-radius to work */
    border-spacing: 0; /* Removes spacing between cells */
    font-family: Arial, sans-serif;
    border: 1px solid #e0e0e0; /* Border around the entire table */
    border-radius: 12px; /* Rounded corners for the table */
    overflow: hidden; /* Ensures content doesn't spill over the rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
	margin-top: 100px;
	margin-bottom: 100px;
}

/* Table Header Styling */
.sw-table th {
    background-color: #FF6055;
    color: #ffffff;
    font-size: 16px;
    padding: 12px 15px;
    text-align: left;
    /* Rounded corners for top-left and top-right headers */
    &:first-child {
        border-top-left-radius: 12px;
    }
    &:last-child {
        border-top-right-radius: 12px;
    }
}

/* Table Cells Styling */
.sw-table th,
.sw-table td {
    padding: 12px 15px;
    text-align: left;
	border: none !important;
}

/* Remove the right border from all cells except the last one */
.sw-table th:not(:last-child),
.sw-table td:not(:last-child) {
    border-right: none !important;
}

/* Alternating Row Colors */
.sw-table tbody tr:nth-child(even) {
    background-color: #fcfcfc; /* Even lighter for better readability */
}

/* Hover Effects */
.sw-table tbody tr:hover {
    background-color: #e6f7ff; /* Light blue background on hover */
    box-shadow: inset 0 0 10px rgba(0, 115, 170, 0.3); /* Subtle inner shadow */
    cursor: pointer; /* Change cursor to pointer on hover */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
}

/* Focus State for Accessibility */
.sw-table tbody tr:focus {
    outline: 2px solid #0073aa;
    background-color: #e6f7ff;
    box-shadow: inset 0 0 10px rgba(0, 115, 170, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sw-table th, .sw-table td {
        padding: 8px 10px;
    }

    .sw-table {
        border-radius: 8px; /* Slightly less rounding on smaller screens */
    }

    .sw-table th:first-child,
    .sw-table th:last-child {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }
}
