* {
    box-sizing: border-box;
}

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

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

.navbar {
    background: #111827;
    padding: 18px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 21px;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    color: #e5e7eb;
    text-decoration: none;
}

.nav-button {
    background: white;
    color: #111827 !important;
    padding: 9px 16px;
    border-radius: 7px;
}

.hero {
    min-height: 70vh;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 60px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.1;
    margin: 15px 0;
}

.hero p {
    font-size: 18px;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 30px;
}

.badge {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
}

.hero-card,
.form-card,
.content-card,
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.feature {
    display: flex;
    flex-direction: column;
    padding: 17px 0;
    border-bottom: 1px solid #e5e7eb;
}

.feature:last-child {
    border-bottom: 0;
}

.feature span {
    color: #6b7280;
    margin-top: 5px;
}

.button {
    display: inline-block;
    border: none;
    border-radius: 7px;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
}

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

.secondary {
    background: white;
    color: #111827;
    border: 1px solid #d1d5db;
    margin-left: 7px;
}

.auth-wrapper {
    min-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-card {
    width: 100%;
    max-width: 480px;
}

.form-card h1 {
    margin-top: 0;
}

.form-intro {
    color: #6b7280;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 15px;
}

.form-control:focus {
    outline: 2px solid #c7d2fe;
    border-color: #6366f1;
}

.full-width {
    width: 100%;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.error {
    display: block;
    color: #b91c1c;
    font-size: 13px;
    margin-top: 5px;
}

.alert {
    padding: 14px;
    margin-top: 20px;
    border-radius: 7px;
}

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

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.page-header {
    margin: 55px 0 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card span {
    color: #6b7280;
}

.stat-card strong {
    display: block;
    font-size: 32px;
    margin-top: 10px;
}

.content-card {
    margin-bottom: 50px;
}

footer {
    border-top: 1px solid #e5e7eb;
    padding: 25px 0;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 800px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 37px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.filter-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 7px;
}

.filter-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ticket-row:last-child {
    border-bottom: none;
}

.ticket-title {
    color: #111827;
    font-weight: bold;
    text-decoration: none;
    font-size: 17px;
}

.ticket-title:hover {
    text-decoration: underline;
}

.ticket-meta {
    color: #6b7280;
    font-size: 13px;
    margin-top: 7px;
}

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

.label {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.status-open {
    background: #dbeafe;
    color: #1e40af;
}

.status-progress {
    background: #fef3c7;
    color: #92400e;
}

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

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

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

.priority-medium {
    background: #e0e7ff;
    color: #3730a3;
}

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

.priority-critical {
    background: #fee2e2;
    color: #991b1b;
}

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

    .ticket-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
