/* ========================================
   GENERAL STYLES (Tables, Headings, Links)
   ======================================== */

/* Headings */
h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
    margin-right: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

a[href="/admin/dashboard"] {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: #007bff;
}

a[href="/admin/dashboard"]:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: #007bff;
    color: white;
}

thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

tbody tr {
    border-bottom: 1px solid #ddd;
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #f1f7ff;
}

tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    color: #444;
}

/* Table Actions */
td form {
    display: flex;
    align-items: center;
    gap: 10px;
}

td form button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

td form button:hover {
    background-color: #b02a37;
}

td form a {
    color: #28a745;
    font-weight: 600;
}

td form a:hover {
    text-decoration: underline;
}
