/* --- Base --- */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f6f8;
    margin: 0;
    padding: 20px;
    color: #333;
}

h1 {
    margin-bottom: 10px;
}

/* --- Navigation --- */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    gap: 15px;
}

nav a {
    text-decoration: none;
    padding: 8px 14px;
    background-color: #2c7be5;
    color: white;
    border-radius: 4px;
    font-weight: bold;
}

nav a:hover {
    background-color: #1a68d1;
}

/* --- Table --- */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

th, td {
    padding: 10px 12px;
    text-align: left;
}

th {
    background-color: #eef1f4;
    font-weight: bold;
    font-size: 14px;
}

tr:nth-child(even) {
    background-color: #fafafa;
}

tr:hover {
    background-color: #f1f5ff;
}

/* --- Images --- */
td img {
    width: 60px;
    height: auto;
    border-radius: 4px;
}

/* --- Links (actions) --- */
td a {
    text-decoration: none;
    color: #2c7be5;
    font-weight: bold;
}

td a:hover {
    text-decoration: underline;
}

/* --- Danger actions --- */
td a[href*="kustuta"] {
    color: #dc3545;
}

td a[href*="punktNulliks"] {
    color: #fd7e14;
}

/* --- Status text --- */
td:last-child {
    white-space: nowrap;
    font-size: 14px;
}
