/* EMTA veebilehe stiilis CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Segoe UI', Tahoma, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Päis */
h1 {
    background: linear-gradient(135deg, #0066b3 0%, #004d8c 100%);
    color: white;
    padding: 30px 20px;
    margin: 0 0 30px 0;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Konteiner */
body > * {
    max-width: 1200px;
    margin: 0 auto;
}

/* Vorm */
form {
    background: white;
    padding: 25px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #0066b3;
}

form label {
    display: block;
    font-weight: 600;
    color: #0066b3;
    margin-bottom: 8px;
    font-size: 14px;
}

form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

form input[type="text"]:focus {
    outline: none;
    border-color: #0066b3;
    box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.1);
}

form input[type="submit"] {
    background: #0066b3;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
    background: #004d8c;
}

/* Tabel */
table {
    width: calc(100% - 40px);
    margin: 20px;
    background: white;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: #0066b3;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: #f8f9fa;
}

/* Uudiste loend */
ul {
    list-style: none;
    margin: 20px;
}

ul li {
    background: white;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #0066b3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

ul li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

ul li a {
    color: #0066b3;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

ul li a:hover {
    color: #004d8c;
    text-decoration: underline;
}

ul li img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 4px;
}

/* Responsiivsus */
@media (max-width: 768px) {
    h1 {
        font-size: 22px;
        padding: 20px 15px;
    }

    form, table, ul {
        margin: 15px;
    }

    table {
        font-size: 12px;
    }

    table th, table td {
        padding: 10px;
    }
}