/* Fails: style.css | Autors: Students | Datums: 2025 */

body {
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
    background: #f5f5f5;
    color: #222;
}

h1 { color: #2c3e50; border-bottom: 2px solid #3498db; padding-bottom: 8px; }
h2 { color: #2980b9; margin-top: 30px; }

/* Forma */
form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    margin-bottom: 25px;
}
form label { font-weight: bold; margin-right: 8px; }
form input[type=number] {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 15px;
}
form button {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
}
form button:hover { background: #2176ae; }

/* Paskāla trijstūris */
.pascal {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    margin-bottom: 25px;
    text-align: center;
    font-family: monospace;
    font-size: 15px;
    line-height: 1.8;
}
.pascal-table {
    border-collapse: collapse;
    margin: 0 auto;
    box-shadow: none;
    width: auto;
}
.pascal-table td {
    width: 30px;
    height: 30px;
    text-align: center;
    padding: 4px 2px;
    border: none;
    font-family: monospace;
    font-size: 15px;
    border-bottom: none;
}
.pascal .highlight { color: #e74c3c; font-weight: bold; }

/* Kodu saraksts */
.codes {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    margin-bottom: 25px;
}
.codes ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}
.codes ul li {
    background: #eaf4fb;
    border: 1px solid #aed6f1;
    border-radius: 4px;
    padding: 4px 10px;
    font-family: monospace;
    font-size: 14px;
}

/* Paziņojumi */
.msg-ok  { color: #27ae60; font-weight: bold; }
.msg-err { color: #e74c3c; font-weight: bold; }

/* DB tabula */
table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
th { background: #3498db; color: #fff; padding: 10px; }
td { padding: 8px 12px; border-bottom: 1px solid #eee; text-align: center; }
tr:last-child td { border-bottom: none; }
