* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
body {
    background: #eef3fa;
    padding: 24px;
    color: #153e51;
}
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.login-card {
    background: white;
    border-radius: 32px;
    padding: 2rem;
    width: 320px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.login-card h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}
.login-card input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #cce0e8;
    border-radius: 28px;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.login-card button {
    width: 100%;
    background: #2c7da0;
    border: none;
    padding: 0.7rem;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}
.error-msg {
    color: #c13b1b;
    margin-top: 1rem;
    text-align: center;
}
.dashboard {
    max-width: 1400px;
    margin: 0 auto;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 32px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.logout-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    cursor: pointer;
}
.card {
    background: white;
    border-radius: 28px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #dde9f0;
}
.card-header {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid #2c7da0;
    padding-left: 1rem;
}
.table-wrapper {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e2edf2;
}
th {
    background: #eef3f8;
    font-weight: 600;
}
.code-display {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 1rem;
    border-radius: 20px;
    margin-top: 1rem;
}
button {
    background: #2c7da0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    color: white;
    cursor: pointer;
}
button:hover {
    opacity: 0.9;
}
.status-used {
    color: #dc2626;
    font-weight: 500;
}
.status-valid {
    color: #16a34a;
    font-weight: 500;
}
.status-expired {
    color: #d97706;
}