* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
}

a {
    text-decoration: none;
}

/* LAYOUT */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    width: 320px;
    background: #111827;
    color: white;
    padding: 25px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo {
    margin-bottom: 30px;
}

.user-box {
    margin-bottom: 30px;
}

.welcome-text {
    color: #9ca3af;
    margin-bottom: 5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-nav a {
    padding: 12px;
    border-radius: 8px;
    transition: 0.2s;
    color: white;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.08);
}

/* SIDEBAR ACTIVITY */

.sidebar-activity {
    margin-top: 40px;
}

.sidebar-activity h3 {
    margin-bottom: 15px;
    color: #d1d5db;
}

.sidebar-activity-item {
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.sidebar-activity-item strong {
    font-size: 13px;
}

.sidebar-activity-item p {
    font-size: 12px;
    margin: 6px 0;
    color: #d1d5db;
    line-height: 1.4;
}

.sidebar-activity-item small {
    color: #9ca3af;
    font-size: 11px;
}

/* MAIN CONTENT */

.main-content {
    flex: 1;
    padding: 35px;
}

/* PAGE HEADER */

.page-header {
    margin-bottom: 30px;
}

/* JOB GRID */

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

/* JOB CARD */

.job-card {
    background: white;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.job-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.job-card-top h2 {
    font-size: 20px;
}

.job-description {
    color: #4b5563;
    line-height: 1.5;
    font-size: 14px;
}

.job-meta p {
    margin-bottom: 8px;
    font-size: 14px;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* BUTTONS */

.btn,
button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

.btn:hover,
button:hover {
    background: #1d4ed8;
}

/* INPUTS */

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-family: inherit;
}

/* STATUS */

.status {
    padding: 5px 12px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.pending {
    background: #6b7280;
}

.in-progress {
    background: #2563eb;
}

.waiting-for-client {
    background: #f59e0b;
}

.completed {
    background: #10b981;
}

/* ROLE BADGES */

.role-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.role-badge.admin {
    background: #dc2626;
}

.role-badge.user {
    background: #2563eb;
}

/* OVERDUE */

.overdue {
    color: #dc2626;
    font-weight: bold;
}

/* JOB PAGE */

.job-header-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.job-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
}

.job-header-top h1 {
    font-size: 24px;
    line-height: 1.2;
}

.job-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.job-info-item {
    background: #f9fafb;
    padding: 10px;
    border-radius: 8px;
}

.job-info-item span {
    display: block;
    font-size: 10px;
    color: #6b7280;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-info-item strong {
    font-size: 13px;
    font-weight: 600;
}

.hosting-box {
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
}

.hosting-box span {
    display: block;
    font-size: 10px;
    color: #6b7280;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hosting-box p {
    line-height: 1.4;
    color: #374151;
    font-size: 12px;
}

/* UPDATE FORM */

.update-form-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.update-form-card h2 {
    margin-bottom: 15px;
    font-size: 22px;
}

.update-form-card textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    margin-bottom: 15px;
    font-family: inherit;
}

/* FILES */

.file-upload-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.file-upload-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
}

.file-upload-top h2 {
    font-size: 18px;
}

.upload-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.upload-form input[type="file"] {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    background: #f9fafb;
    padding: 10px 12px;
    border-radius: 8px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.file-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-left a {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
}

.file-left small {
    font-size: 10px;
    color: #6b7280;
}

.delete-file-btn {
    color: #dc2626;
    font-size: 12px;
    font-weight: bold;
}

.delete-file-btn:hover {
    text-decoration: underline;
}

/* UPDATES */

.updates-section {
    margin-top: 35px;
}

.updates-section h2 {
    font-size: 30px;
    margin-bottom: 24px;
}

.update-card {
    background: white;
    border-radius: 16px;
    padding: 26px;
    margin-bottom: 22px;
    border-left: 4px solid #2563eb;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.update-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.update-top strong {
    font-size: 15px;
}

.update-top small {
    color: #6b7280;
    font-size: 12px;
}

.update-message {
    line-height: 1.9;
    color: #374151;
    font-size: 15px;
}

/* TABLES */

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.users-table th,
.users-table td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.users-table th {
    background: #f9fafb;
}

/* MOBILE */

@media (max-width: 900px) {

    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .main-content {
        padding: 20px;
    }

    .job-header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-info-grid {
        grid-template-columns: 1fr;
    }

    .file-upload-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .upload-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .update-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

}

/* STATUS DROPDOWN */

.status-dropdown-form {
    margin: 0;
}

.status-dropdown {
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    color: white;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    outline: none;
    min-width: 170px;
    text-align: center;
}

/* Remove ugly select styles */
.status-dropdown option {
    color: black;
    background: white;
}

/* INLINE EDITING */

.inline-form {
    margin: 0;
}

.inline-input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    color: #111827;
}

.inline-input:focus {
    outline: none;
}

.inline-textarea {
    width: 100%;
    border: none;
    background: transparent;
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
}

.inline-textarea:focus {
    outline: none;
}

/* ASSIGNED USERS */

.assigned-users-card {
    grid-column: 1 / -1;
}

.assigned-users-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.assign-user-form {
    margin: 0;
}

.assigned-user-btn {
    border: none;
    background: #f3f4f6;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s;

    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.assigned-user-btn:hover {
    background: #e5e7eb;
}

.assigned-user-btn.assigned {
    background: #fee2e2;
    color: #dc2626;
    font-weight: 700;
}

/* DELETE JOB BUTTON */

.delete-job-btn {
    background: #dc2626;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    transition: 0.2s;
}

.delete-job-btn:hover {
    background: #b91c1c;
}

/* CREATE JOB PAGE */

.create-job-container {
    max-width: 1100px;
}

.create-job-header {
    margin-bottom: 30px;
}

.create-job-header h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.create-job-header p {
    color: #6b7280;
}

.create-job-form {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.create-job-form input,
.create-job-form textarea {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
}

.create-job-form textarea {
    resize: vertical;
}

.create-job-btn {
    margin-top: 25px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 600;
}

/* MOBILE */

@media (max-width: 900px) {

    .create-job-form {
        padding: 20px;
    }

    .create-job-header h1 {
        font-size: 28px;
    }

}

/* SETTINGS PAGE */

.settings-container {
    max-width: 700px;
}

.settings-header {
    margin-bottom: 30px;
}

.settings-header h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.settings-header p {
    color: #6b7280;
}

.settings-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.settings-card h2 {
    margin-bottom: 24px;
    font-size: 24px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-form .form-group {
    display: flex;
    flex-direction: column;
}

.settings-form label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.settings-form input {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
}

.settings-btn {
    margin-top: 10px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 600;
}

.settings-message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.settings-message.success {
    background: #dcfce7;
    color: #166534;
}

.settings-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* MOBILE */

@media (max-width: 900px) {

    .settings-card {
        padding: 20px;
    }

    .settings-header h1 {
        font-size: 28px;
    }

}

/* ADMIN PAGE */

.admin-container {
    max-width: 1200px;
}

.admin-header {
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.admin-header p {
    color: #6b7280;
}

.admin-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 25px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.admin-card-header {
    margin-bottom: 25px;
}

.admin-card-header h2 {
    font-size: 24px;
}

.admin-form {
    display: flex;
    flex-direction: column;
}

.admin-btn {
    margin-top: 24px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 600;
}

.admin-message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.admin-message.success {
    background: #dcfce7;
    color: #166534;
}

.admin-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* USER TABLE */

.users-table-wrapper {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background: #f9fafb;
}

.users-table th {
    text-align: left;
    padding: 16px;
    font-size: 13px;
    color: #6b7280;
}

.users-table td {
    padding: 16px;
    border-top: 1px solid #f3f4f6;
}

.user-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2563eb;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
    font-size: 14px;
}

/* ACTIONS */

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-action-btn {
    background: #f3f4f6;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    transition: 0.2s;
}

.admin-action-btn:hover {
    background: #e5e7eb;
}

.admin-action-btn.danger {
    background: #fee2e2;
    color: #dc2626;
}

.admin-action-btn.danger:hover {
    background: #fecaca;
}

/* MOBILE */

@media (max-width: 900px) {

    .admin-card {
        padding: 20px;
    }

    .admin-header h1 {
        font-size: 28px;
    }

    .users-table th,
    .users-table td {
        padding: 12px;
    }

}

/* LOGIN PAGE */

.login-page {
    min-height: 100vh;
    background: #111827;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #1f2937;

    border-radius: 22px;

    padding: 42px 36px;

    border: 1px solid rgba(255,255,255,0.06);

    box-shadow:
        0 12px 40px rgba(0,0,0,0.35);
}

.login-header {
    text-align: center;
    margin-bottom: 34px;
}

.login-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: white;
    font-weight: 700;
}

.login-header p {
    color: #9ca3af;
    font-size: 15px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
}

.login-form label {
    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 600;

    color: #d1d5db;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-form input {
    width: 100%;

    background: #111827;
    border: 1px solid #374151;

    color: white;

    border-radius: 12px;

    padding: 15px 16px;

    font-size: 16px;

    transition: 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: #2563eb;
    background: #0f172a;
}

.login-btn {
    width: 100%;

    margin-top: 8px;

    background: #2563eb;
    color: white;

    border: none;

    border-radius: 12px;

    padding: 15px;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.login-btn:hover {
    background: #1d4ed8;
}

.login-error {
    background: rgba(220,38,38,0.12);

    border: 1px solid rgba(220,38,38,0.25);

    color: #fca5a5;

    padding: 14px;

    border-radius: 12px;

    margin-bottom: 20px;

    font-size: 14px;
    font-weight: 600;

    text-align: center;
}

/* MOBILE */

@media (max-width: 600px) {

    .login-page {
        padding: 16px;
    }

    .login-container {
        max-width: 100%;
    }

    .login-card {
        width: 100%;

        padding: 38px 26px;

        border-radius: 20px;
    }

    .login-header h1 {
        font-size: 30px;
    }

    .login-header p {
        font-size: 15px;
    }

    .login-form input {
        padding: 16px;
        font-size: 16px;
    }

    .login-btn {
        padding: 16px;
        font-size: 16px;
    }

}