/* Form Styles */
/* General Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif; /* Ensure sans-serif font */
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1500px;
    margin: 40px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h1, h2, h3, p, label, button, input, select, textarea {
    font-family: 'Helvetica Neue', Arial, sans-serif; /* Apply sans-serif to common elements */
}

h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

p {
    color: #666;
    font-size: 1.2em;
}


.form-container {
    max-width: 1500px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Align labels and inputs using flexbox */
.form-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 15px;
}

.form-group label {
    flex: 0 0 180px;  /* Adjust width of labels */
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    flex: 1;
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f4f4f9;
}

textarea {
    resize: vertical;
}

/* Form button styles */
.form-buttons {
    text-align: right;
    margin-top: 20px;
}

button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

button:hover {
    background-color: #218838;
}

/* Add Equipment button */
#mitigation_equipment_container > div {
    margin-bottom: 10px;
}

button.remove-btn {
    background-color: #dc3545;
}

button.remove-btn:hover {
    background-color: #c82333;
}

/* Improve input focus styling */
input:focus, select:focus, textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group label {
        margin-bottom: 5px;
    }

    .form-buttons button {
        width: 100%;
        margin-bottom: 10px;
    }
}
/* Form label styling */
.form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
    color: #333;
}
/* General Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1500px;
    margin: 40px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

p {
    color: #666;
    font-size: 1.2em;
}

/* Form Styles */
.form-label {
    display: block;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.form-select {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    background-color: #f4f4f9;
}

.tasks-container {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    margin-bottom: 20px;
}

.btn-submit {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #218838;
}

/* Admin Link Styles */
.admin-link {
    margin-top: 20px;
    text-align: center;
}

.admin-link a {
    text-decoration: none;
    color: #007bff;
    font-size: 1.1em;
}

.admin-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    h1 {
        font-size: 2em;
    }

    .btn-submit {
        width: 100%;
    }
}

/* Removes bullet points from checkbox list */
ul {
    list-style-type: none;
    padding-left: 0;
}

/* Optional: add some spacing between items */
ul li {
    margin-bottom: 10px;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background-color: #f0f0f0;
    font-weight: bold;
    color: #333;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* Risk level color classes */
.risk-low {
    background-color: #99ff99; /* Green */
}

.risk-moderate {
    background-color: #ffff99; /* Yellow */
}

.risk-significant {
    background-color: #ffcc00; /* Orange */
}

.risk-high {
    background-color: #ff6666; /* Red */
}

/* Button styles for PDF export */
button {
    padding: 10px 20px;
    background-color: #5cb85c;
    border: none;
    color: white;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #4cae4c;
}

/* Links styling */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
/* General Styles for Table */
table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
    word-wrap: break-word;
}

.risk-low {
    background-color: #99ff99; /* Green */
}

.risk-moderate {
    background-color: #ffff99; /* Yellow */
}

.risk-significant {
    background-color: #add8e6; /* Blue */
}

.risk-high {
    background-color: #ff6666; /* Red */
}

/* Ensure text wraps properly in all cells */
table td {
    white-space: normal;
    word-wrap: break-word;
}

/* Handle merged cells and consistent layout */
td[rowspan] {
    vertical-align: middle; /* Center vertically */
    text-align: center;     /* Center horizontally */
}

/* Adjust long text to stay within the table cell */
td {
    overflow-wrap: break-word;
}

/* Handle table overflow and make it responsive */
.table-container {
    width: 100%;
    overflow-x: auto;
}
 
.form-input {
    padding: 10px; /* Increase the padding */
    height: 45px;  /* Increase the height */
    font-size: 16px; /* Increase font size */
    width: 100%; /* Make the input fill the available width */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    margin-bottom: 15px; /* Add some space below each input */
}

.form-select {
    padding: 10px;
    height: 45px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

   .button {
        padding: 8px 16px;
        margin: 2px;
        background-color: #007BFF;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .button:hover {
        background-color: #0056b3;
    }

    .share-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: white;
        padding: 20px;
        border: 1px solid #888;
        z-index: 1000;
    }

    .share-popup label {
        display: block;
        margin-top: 10px;
    }

    .share-popup input {
        width: 100%;
        padding: 5px;
        margin-top: 5px;
    }

    /* Overlay background */
    .share-popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

        .header {
            display: flex;
            align-items: center;
            background-color: #ffffff;
            padding: 10px;
            width: 100%;
            box-sizing: border-box;
        }

        .header img {
            margin-right: 20px;
        }

        .header h1 {
            font-size: 32px;
            margin: 0;
            color: #333;
        }
        .menu-toggle {
            cursor: pointer;
            color: #ccc;
            font-size: 18px;
            font-weight: 500;
        }
        
        .side-drawer {
            position: fixed;
            top: 0;
            left: -250px;
            width: 250px;
            height: 100%;
            background-color: #222;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            padding: 20px;
            transition: left 0.3s ease;
            z-index: 1000;
        }
        
        .side-drawer.active {
            left: 0;
        }
        
        .side-drawer a {
            color: #ccc;
            text-decoration: none;
            margin-bottom: 20px;
        }
        
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            z-index: 999;
        }
        
        .overlay.active {
            display: block;
        }
        /* Header and Logo Styling */
        header {
            position: relative; /* Already set to relative */
            display: flex;
            align-items: center;
            background: url('../images/longheader.jpg') no-repeat center center;
            background-size: cover;
            padding: 20px; /* Ensure this padding doesn't push the logo too far to the right */
            justify-content: flex-start; /* This keeps items aligned to the left */
        }

.logo img {
    height: 80px;
    width: auto;
}

.header-text {
    font-size: 36px;
    margin-left: 20px;
    color: #fff;
}

.user-info {
    text-align: right;
    color: #ff0;
}

/* Navigation Styling */
nav {
    background-color: #333;
    padding: 10px 20px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-right: 20px;
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    color: #fff;
}
        