/* style.css - Week 2 CSS cascading & styling */
:root {
    --primary-color: #003366; /* Police Blue */
    --secondary-color: #f4f4f9;
    --text-color: #333;
    --danger-color: #cc0000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
}

.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover { background-color: #002244; }
.btn-danger { background-color: var(--danger-color); }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th { background-color: var(--primary-color); color: white; }

.alert {
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Groups the logo and the title perfectly in the center */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px; 
}

/* Controls the size of the logo so it fits nicely in the blue bar */
.header-logo {
    height: 50px; /* Adjust this number to make the logo larger or smaller */
    width: auto;  /* Ensures the logo doesn't stretch or distort */
    display: block;
}

/* Removes default margins from the heading so it perfectly aligns with the logo */
header h2 {
    margin: 0;
    font-size: 1.5rem; 
}