/* --- Color Variables for Consistency --- */
:root {
    --color-white: #ffffff;
    --color-light-gray: #f8f9fa; /* Very light background for zebra striping */
    --color-border: #dee2e6;     /* Light border color */
    --color-text-dark: #343a40;  /* Dark text for general contrast */

    /* Blue for Primary/Action */
    --color-primary-base: #007bff;
    --color-primary-hover: #0056b3;

    /* Orange for Accent/Action */
    --color-accent-base: #ffc107;
    --color-accent-hover: #e0a800;
    --color-accent-text: var(--color-text-dark); /* Dark text on orange for visibility */
}

/* ----------------------------------- */
/* --- TABLE STYLES (using the 'table' tag) --- */
/* ----------------------------------- */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); /* Subtle shadow for a light look */
    background-color: var(--color-white);
    color: var(--color-text-dark);
}

/* Table Headers */
table th {
    background-color: var(--color-primary-base); /* Blue header background */
    color: var(--color-white);
    text-align: left;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
}

/* Table Data Cells */
table td {
    padding: 12px 15px;
    border: 1px solid var(--color-border);
}

/* Table Body Rows (Zebra Striping and Hover) */
table tr {
    border-bottom: 1px solid var(--color-border);
}

/* Apply light gray to every other row for zebra striping (using the tbody > tr to ensure only body rows are striped) */
table tbody tr:nth-child(even) {
    background-color: var(--color-light-gray);
}

table tbody tr:hover {
    background-color: #e9ecef; /* Slight hover effect for rows */
}

/* Strong bottom border for visual completeness (if desired) */
table tbody tr:last-child {
    border-bottom: 2px solid var(--color-primary-base);
}


/* ----------------------------------- */
/* --- LINK/BUTTON STYLES (using the 'a' tag) --- */
/* ----------------------------------- */

/* Base style for all links ('a' tags) to make them look like buttons */
table a {
    /* Reset default link styles */
    text-decoration: none;
    cursor: pointer;
    
    /* Button box model */
    display: inline-block;
    padding: 8px 15px;
    margin: 3px 5px; /* Space between buttons and table content */
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    border: 1px solid transparent; /* Keeps sizing consistent on hover */
    
    /* Transition for smooth effects */
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Primary Link/Button - Blue */
/* To target specific links for primary/accent without classes, you would use attributes like 'data-type' in your HTML. */
/* Example: <a href="#" data-type="primary">View</a> and <a href="#" data-type="accent">Edit</a> */
table a[data-type="primary"] {
    background-color: var(--color-primary-base);
    color: var(--color-white);
}

table a[data-type="primary"]:hover, 
table a[data-type="primary"]:focus {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Accent Link/Button - Orange */
table a[data-type="accent"] {
    background-color: var(--color-accent-base);
    color: var(--color-accent-text); /* Dark text on orange */
}

table a[data-type="accent"]:hover,
table a[data-type="accent"]:focus {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}