
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #222;
}
a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.header {
    background: #e9ecef;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.content {
    padding: 40px;
}
.login-container, .form-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.login-container h2, .form-container h2 {
    text-align: center;
}
input[type="text"], input[type="email"], input[type="password"], input[type="date"], select, textarea {
    width: 100%; max-width: 500px;
    padding: 10px;
    margin: 8px 0 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
textarea {
    resize: vertical;
}
button {
    width: 100%; max-width: 500px;
    background: #007bff;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}
button:hover {
    background: #0056b3;
}
.sidebar {
    width: 220px;
    background: #fff;
    border-right: 1px solid #ddd;
    padding: 20px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}
.sidebar h2 {
    font-size: 20px;
    margin-bottom: 20px;
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar ul li {
    margin-bottom: 10px;
}
.sidebar ul li a {
    color: #222;
    text-decoration: none;
}
.main {
    margin-left: 240px;
    padding: 20px;
}
.stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.card {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-width: 180px;
}
.positions-table {
    width: 100%; max-width: 500px;
    border-collapse: collapse;
    margin-top: 30px;
    background: #fff;
    border: 1px solid #ddd;
}
.positions-table th, .positions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.positions-table tr:hover {
    background: #f1f1f1;
}
form[action="add_user.php"] .back-link,
form[action="add_position.php"] .back-link {
    display: inline-block;
    margin-bottom: 16px;
}

.positions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #fff;
    border: 1px solid #ddd;
    table-layout: fixed;
}

.positions-table th, .positions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
}

form select[name="status"],
form select[name="stage"] {
    padding: 6px;
    font-size: 14px;
    width: 120px;
}

form button[type="submit"] {
    padding: 8px 12px;
    font-size: 14px;
    width: auto;
    min-width: 120px;
}

.positions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #fff;
    border: 1px solid #ddd;
    table-layout: auto;
}

.positions-table th, .positions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
    white-space: normal;
    word-wrap: break-word;
}

.positions-table td:nth-child(1), .positions-table th:nth-child(1) {
    min-width: 160px;
}
.positions-table td:nth-child(7), .positions-table th:nth-child(7) {
    min-width: 150px;
}


.view-positions-table th:nth-child(3), .view-positions-table td:nth-child(3) { min-width: 130px; } /* Status */
.view-positions-table th:nth-child(4), .view-positions-table td:nth-child(4) { min-width: 130px; } /* Stage */
.view-positions-table th:nth-child(5), .view-positions-table td:nth-child(5) { min-width: 150px; } /* Assigned To */
.view-positions-table th:nth-child(6), .view-positions-table td:nth-child(6) { min-width: 140px; } /* Deadline */
.view-positions-table th:nth-child(2), .view-positions-table td:nth-child(2) { min-width: 160px; } /* Client */

th {
    background-color: #293363;;
    color: #ffffff;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h2 {
            margin-bottom: 30px;
            color: #293363;
            font-size: 26px;
            text-align: center;
}
