* {
    box-sizing: border-box;
}

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

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.navbar {
    background: #111827;
    color: white;
}

.navbar__content {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__brand {
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.navbar__brand:hover {
    text-decoration: none;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar__user {
    color: #d1d5db;
}

.page {
    padding-top: 32px;
    padding-bottom: 48px;
}

.button {
    display: inline-block;
    border: 0;
    border-radius: 6px;
    padding: 9px 14px;
    cursor: pointer;
    font: inherit;
}

.button--secondary {
    background: #374151;
    color: white;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0;
}

.page-subtitle {
    margin-top: 6px;
    color: #6b7280;
}

.button--primary {
    background: #2563eb;
    color: white;
}

.button--primary:hover {
    background: #1d4ed8;
    text-decoration: none;
}

.filters {
    padding: 18px;
    margin-bottom: 24px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.filters__form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 14px;
}

.filters__form label {
    font-size: 14px;
    font-weight: 600;
}

.filters__form input,
.filters__form select {
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
}

.filters__actions {
    display: flex;
    gap: 8px;
}

/* Table styles */

.table-card {
    overflow: hidden;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

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

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

.issues-table th {
    font-size: 13px;
    color: #6b7280;
    background: #f9fafb;
    text-transform: uppercase;
}

.issues-table tbody tr:hover {
    background: #f9fafb;
}

.issue-link {
    font-weight: 700;
}

.issue-title {
    margin-top: 4px;
    color: #374151;
}

.muted {
    color: #9ca3af;
}

/* badges styles */

.badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge--status-todo {
    background: #e5e7eb;
    color: #374151;
}

.badge--status-in_progress {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge--status-done {
    background: #dcfce7;
    color: #166534;
}

.badge--priority-low {
    background: #f3f4f6;
    color: #4b5563;
}

.badge--priority-medium {
    background: #fef3c7;
    color: #92400e;
}

.badge--priority-high {
    background: #fed7aa;
    color: #9a3412;
}

.badge--priority-critical {
    background: #fee2e2;
    color: #b91c1c;
}

.empty-state {
    padding: 32px;
    text-align: center;
    color: #6b7280;
}

/* detail styles */

.page-header__actions {
    display: flex;
    gap: 10px;
}

.button--danger {
    background: #dc2626;
    color: white;
}

.button--danger:hover {
    background: #b91c1c;
    text-decoration: none;
}

.issue-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.card {
    padding: 20px;
    margin-bottom: 24px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.card h2 {
    margin-top: 0;
}

.issue-description {
    line-height: 1.6;
}

.details-list {
    margin: 0;
}

.details-list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.details-list > div:last-child {
    border-bottom: 0;
}

.details-list dt {
    color: #6b7280;
}

.details-list dd {
    margin: 0;
    text-align: right;
}

/* labels/comments/activity */

.labels-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.label-chip {
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 600;
}

.comments-list {
    display: grid;
    gap: 14px;
}

.comment {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.comment__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.comment__body {
    line-height: 1.5;
}

.comment-form {
    margin-top: 24px;
}

.activity-list {
    margin: 0;
    padding-left: 20px;
}

.activity-list li {
    margin-bottom: 8px;
}

/* adaptability */

@media (max-width: 800px) {
    .issue-layout {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
    }

    .page-header__actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* form cards */

.form-card {
    max-width: 720px;
    padding: 24px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.form-card form p {
    margin: 0 0 18px;
}

.form-card label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font: inherit;
    background: white;
}

.form-card input[type="checkbox"] {
    width: auto;
    padding: 0;
}

.form-card textarea {
    min-height: 140px;
    resize: vertical;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: 2px solid #bfdbfe;
    border-color: #2563eb;
}

.form-card ul.errorlist {
    margin: 0 0 8px;
    padding-left: 20px;
    color: #b91c1c;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 60px;
}

.auth-card {
    width: min(420px, 100%);
}

.danger-card {
    border-color: #fecaca;
}

.danger-card h1 {
    color: #b91c1c;
}

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

.workspace-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: inherit;
}

.workspace-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.workspace-card h2 {
    margin: 0 0 6px;
}

.workspace-card__arrow {
    font-size: 24px;
    color: #2563eb;
}

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

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

.projects-table th {
    background: #f9fafb;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
}

.projects-table tbody tr:hover {
    background: #f9fafb;
}

.action-list {
    display: grid;
    gap: 12px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 14px;
}

.action-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: inherit;
    background: #f9fafb;
}

.action-card:hover {
    border-color: #bfdbfe;
    background: white;
    text-decoration: none;
}

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

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

.members-table th {
    background: #f9fafb;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
}

.members-table tbody tr:hover {
    background: #f9fafb;
}

.role-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.danger-link {
    color: #dc2626;
}

.danger-link:hover {
    color: #b91c1c;
}

.messages {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.message {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
}

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

.message--error {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

.message--warning {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumbs a {
    color: #2563eb;
}

.breadcrumbs__separator {
    color: #9ca3af;
}

.social-login {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.social-login__label {
    margin-bottom: 12px;
    text-align: center;
}

.social-login__buttons {
    display: grid;
    gap: 10px;
}

.social-login__button {
    text-align: center;
}