        /* Base reset */
        * {
            box-sizing: border-box;
        }
        body {
            font-family: Arial, sans-serif;
            background-color: #f8f9fa;
            margin: 0;
            padding: 0;
            color: #333;

            background-image: url("../img/Nature2.png");

            background-attachment: fixed;
        }
        .dashboard-btn,
        .logout-btn {
          position: absolute;
          top: 20px;
          /* Common button styling */
          color: #fff;
          border: none;
          border-radius: 4px;
          padding: 10px 20px;
          font-size: 16px;
          cursor: pointer;
          transition: background-color 0.3s ease, transform 0.2s ease;
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        /* Positioning: Dashboard button is left of the logout button */
        .dashboard-btn {
          right: 150px; /* Adjust for spacing */
          background-color: #2196F3; /* Blue */
        }
        
        .dashboard-btn:hover {
          background-color: #1976D2; 
          transform: translateY(-1px);
        }
        
        .dashboard-btn:active {
          background-color: #1565C0;
          transform: translateY(1px);
        }
        
        /* Logout button to the far right */
        .logout-btn {
          right: 20px;
          background-color: #f44336; /* Red */
        }
        
        .logout-btn:hover {
          background-color: #d32f2f;
          transform: translateY(-1px);
        }
        
        .logout-btn:active {
          background-color: #b71c1c;
          transform: translateY(1px);
        }
        
        .rainbow-text {
            /* Create a rainbow gradient background */
            background: linear-gradient(
              to right,
              red, orange, yellow, green, cyan, blue, violet, red
            );
            /* Animate the background from left to right */
            background-size: 400% auto;
            /* Clip the background to the text (so the gradient appears as text color) */
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            /* For non-WebKit browsers that support it: */
            background-clip: text;
            color: transparent;
        
            /* Animation */
            animation: rainbowMove 3s linear infinite;
        }
        
        /* Keyframes for shifting the gradient left-to-right */
        @keyframes rainbowMove {
            0%   { background-position: 0% center; }
            100% { background-position: 100% center; }
        }

        .btn-update {
            /* Base button styling */
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            color: #fff; /* text color */
        
            /* Rainbow background gradient */
            background: linear-gradient(to right, red, orange, yellow, green, cyan, blue, violet);
            background-size: 400% 100%;
            animation: rainbowButton 3s linear infinite;
            cursor: pointer;
        }
        
        /* Keyframes to shift the background position horizontally */
        @keyframes rainbowButton {
            0%   { background-position: 0% 50%; }
            100% { background-position: 100% 50%; }
        }
        .edit-icon-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: rgb(119, 119, 119);
            font-size: 1.2rem;
            padding: 0;
            margin-left: 6px;
            vertical-align: middle;
        }
        .edit-icon-btn:hover {
            color: rgb(0, 0, 0);
        }
        
        /* Sorting icons in the header */
        .sort-icons {
            margin-left: 5px;
            font-size: 0.9rem;
            white-space: nowrap;
        }
        .sort-icons a {
            color: #666;
            text-decoration: none;
            margin-right: 3px;
        }
        .sort-icons a:hover {
            color: #000;
        }
        
        table {
            border-collapse: collapse;
            width: 100%;
        }
        th, td {
            border: 1px solid #ccc;
            padding: 10px;
            vertical-align: middle;
        }
        /* For the swap button + input */
        .swap-icon-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: rgb(180, 98, 0);
            font-size: 1.2rem;
            margin-left: 6px;
            vertical-align: middle;
        }
        .swap-icon-btn:hover {
            color: rgb(255, 113, 0);
        }
        .swap-input {
            width: 60px;
            margin-left: 5px;
            text-align: center;
        }
        .container {
            max-width: 1680px;
            margin: 50px auto;
            padding: 20px;
            background: #e8e8e8;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            margin-top: 5rem;
        }
        h1 {
            margin-bottom: 1rem;
            font-size: 1.8rem;
            text-align: center;
        }
        /* Responsive table container */
        .table-container {
            width: 100%;
            overflow-x: auto; /* Horizontal scroll if needed */
            margin-bottom: 1rem;
            border: 1px solid #ddd;
            border-radius: 8px;
        }
        table {
            width: 100%;
            min-width: 1000px; /* Force horizontal scroll if smaller screens */
            border-collapse: collapse;
            border-spacing: 0;
            white-space: nowrap; /* Prevent text from wrapping */
        }
        
        thead th {
            background-color: #343a40;
            color: #fff;
            padding: 12px;
            text-align: left;
            position: sticky;
            top: 0;
        }
        th, td {
    padding: 12px;
    border: 1px solid #ddd; /* Adds a border around each cell */
    vertical-align: middle;
}

        tr:hover {
            background-color: #f5f5f5;
        }
        /* Show truncated text and an Edit button */
        .display-snippet {
            display: inline-block;
            max-width: 200px;
            overflow: hidden;
            vertical-align: middle;
        }
        .edit-btn {
            margin-left: 8px;
            padding: 4px 8px;
            background-color: #007bff;
            border: none;
            color: #fff;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.8rem;
        }
        .edit-btn:hover {
            background-color: #0056b3;
        }
        .btn-update {
            background-color: #9c3ac8;
            color: #fff;
            border: none;
            padding: 8px 12px;
            cursor: pointer;
            border-radius: 4px;
            transition: background-color 0.2s ease;
        }
        .btn-update:hover {
            background-color: #6f2b8f;
        }
        img {
            max-width: 100px;
            height: auto;
            display: block;
            margin: 0 auto;
        }
        /* Hide actual input fields (we only store data there) */
        .hidden-input {
            display: none;
        }

        /* ===== Modal Styles ===== */
        .modal-overlay {
            display: none; /* hidden by default */
            position: fixed;
            z-index: 9999;
            left: 0; 
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }
        .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #fff;
            padding: 20px;
            width: 90%;
            max-width: 500px;
            border-radius: 8px;
        }
        .modal-header {
            margin-bottom: 1rem;
        }
        .modal-body textarea {
            width: 100%;
            height: 150px;
            resize: vertical;
            font-family: Arial, sans-serif;
        }
        .modal-footer {
            text-align: right;
        }
        .modal-footer button {
            margin-left: 8px;
            padding: 6px 12px;
            cursor: pointer;
            border-radius: 4px;
            border: none;
        }
        .modal-save {
            background-color: #28a745;
            color: #fff;
        }
        .modal-cancel {
            background-color: #999;
            color: #fff;
        }

        /* MOBILE-FRIENDLY MEDIA QUERIES */
        @media (max-width: 768px) {
            table {
                min-width: 600px;
            }
            th, td {
                padding: 8px;
            }
            .edit-btn, .btn-update {
                font-size: 0.7rem;
                padding: 6px;
            }
        }