/* --- Base --- */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f6f8;
    margin: 0;
    padding: 20px;
    color: #333;
}

h1, h2 {
    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);
    margin-bottom: 30px;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

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;
}

/* --- Action links --- */
td a {
    text-decoration: none;
    font-weight: bold;
}

td a[href*="lisa1punkt"] {
    color: #198754;
}

td a[href*="kustuta1punkt"] {
    color: #dc3545;
}

td a:hover {
    text-decoration: underline;
}

/* --- Comments --- */
td form {
    display: flex;
    gap: 5px;
}

td input[type="text"] {
    padding: 6px;
    width: 160px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

td input[type="submit"] {
    padding: 6px 10px;
    border: none;
    background-color: #2c7be5;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

td input[type="submit"]:hover {
    background-color: #1a68d1;
}

/* --- Add song form --- */
form {
    background-color: white;
    padding: 20px;
    max-width: 400px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

form label {
    font-weight: bold;
}

form input[type="text"],
form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

form textarea {
    resize: vertical;
    height: 60px;
}

form input[type="submit"] {
    margin-top: 10px;
    padding: 10px;
    background-color: #198754;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background-color: #157347;
}
