/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

/* Container for main content */
.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
    width: 90%;
    max-width: 1200px;
}

/* Headings */
h1, h2, h3 {
    color: #004d99; /* Dark Blue */
    text-align: center;
    margin-top: 0;
    font-weight: 600;
}

h2 {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* Navigation Bar */
.nav-bar {
    background-color: #004d99; /* Dark Blue */
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-bar a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-bar a:hover {
    background-color: #007bff; /* Lighter Blue */
}

.nav-bar .logout {
    margin-left: auto;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: bold;
    margin-top: 10px;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
select,
textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    border-color: #007bff;
    outline: none;
}

/* Buttons */
.button {
    background-color: #004d99; /* Dark Blue */
    color: white;
    border: none;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    font-weight: 600;
}

.button:hover {
    background-color: #007bff;
}

.button:active {
    transform: scale(0.99);
}

/* Messages */
.success, .error {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden; 
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: 700;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Status Indicators */
.status-draft {
    color: #f39c12; /* Orange */
    font-weight: bold;
}

.status-submitted {
    color: #007bff; /* Blue */
    font-weight: bold;
}

.status-under {
    color: #3498db; /* Light Blue */
    font-weight: bold;
}

.status-finalized, .status-completed {
    color: #2ecc71; /* Green */
    font-weight: bold;
}

.status-pending {
    color: #e74c3c; /* Red */
    font-weight: bold;
}

.action-link {
    color: #007bff;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #007bff;
    border-radius: 4px;
    display: inline-block;
}

.action-link:hover {
    background-color: #007bff;
    color: white;
}