@import url('https://fonts.loli.net/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #1d2939;
}

.login-page {
    display: flex;
    width: 100vw;
    height: 100vh;
    background: white;
}

.login-left {
    width: 620px;
    height: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.login-left .bg-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(49, 49, 49, 0.3) 4.736%, rgba(0, 0, 0, 0.55) 103.32%),
                url('../images/login-bg.jpg');
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    display: flex;
    align-items: flex-end;
    padding: 48px;
}

.login-left .bg-text {
    color: white;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.login-left .bg-text span {
    display: block;
    font-size: 16px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 12px;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 120px;
}

.login-container {
    width: 100%;
    max-width: 545px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.login-header h1 {
    font-weight: 700;
    font-size: 32px;
    line-height: 44px;
    color: #1d2939;
    margin: 0 0 8px 0;
}

.login-header p {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #667085;
    margin: 0;
}

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

.input-wrapper {
    background: #f2f4f7;
    border-radius: 10px;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    transition: box-shadow 0.2s ease;
}

.input-wrapper:focus-within {
    box-shadow: 0 0 0 2px rgba(21, 112, 239, 0.2);
}

.input-wrapper .input-icon {
    flex-shrink: 0;
    color: #98a2b3;
}

.input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 24px;
    color: #101828;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #98a2b3;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.login-actions .action-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.btn-login {
    background: #1570ef;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: white;
    cursor: pointer;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: #1366d6;
}

.btn-login:active {
    transform: scale(0.98);
}

.btn-login svg {
    width: 20px;
    height: 20px;
}

.login-divider {
    width: 100%;
    height: 1px;
    background: #e4e7ec;
}

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

.login-footer span {
    font-weight: 500;
    font-size: 14px;
    color: #667085;
}

.login-footer a {
    font-weight: 600;
    font-size: 14px;
    color: #1570ef;
    text-decoration: none;
    cursor: pointer;
}

.login-footer a:hover {
    opacity: 0.8;
}

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

.app-sidebar {
    width: 260px;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.06);
    border-right: 1px solid #e8e8e8;
    z-index: 100;
}

.sidebar-header {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.sidebar-header .logo {
    font-size: 20px;
    font-weight: 700;
    color: #1d2939;
    letter-spacing: -0.3px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 2px;
}

.nav-item {
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    margin: 2px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #667085;
    text-decoration: none;
}

.nav-item:hover {
    background: #f8f9fa;
    color: #344054;
}

.nav-item.active {
    color: #1570ef;
    background: #eff8ff;
}

.nav-item .nav-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-item .nav-icon svg {
    stroke: currentColor;
}

.sidebar-user {
    padding: 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e4e7ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #667085;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-user .user-details {
    flex: 1;
    min-width: 0;
}

.sidebar-user .user-name {
    font-size: 14px;
    font-weight: 500;
    color: #344054;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user .user-role {
    font-size: 12px;
    color: #98a2b3;
    margin-top: 2px;
    display: block;
}

.sidebar-user .logout-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #98a2b3;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-user .logout-btn:hover {
    background: #fef3f2;
    color: #d92d20;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
}

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

.page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1d2939;
    margin: 0 0 4px 0;
}

.page-header p {
    font-size: 14px;
    color: #667085;
    margin: 0;
}

.card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
    overflow: visible;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d2939;
    margin: 0 0 20px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #344054;
}

.form-input,
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: #f2f4f7;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #101828;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background: #ffffff;
    border-color: #1570ef;
    box-shadow: 0 0 0 3px rgba(21, 112, 239, 0.12);
}

.form-input::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #98a2b3;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: #1570ef;
    color: white;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.btn-primary:hover {
    background: #1366d6;
}

.btn-secondary {
    background: #f2f4f7;
    color: #344054;
    border: 1px solid #d0d5dd;
}

.btn-secondary:hover {
    background: #e4e7ec;
}

.btn-danger {
    background: #fef3f2;
    color: #d92d20;
    border: 1px solid #fecdca;
}

.btn-danger:hover {
    background: #fee4e2;
}

.btn-success {
    background: #ecfdf3;
    color: #039855;
    border: 1px solid #a6f4c5;
}

.btn-success:hover {
    background: #d1fadf;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.progress-container {
    margin: 20px 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #667085;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e4e7ec;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1570ef, #2e90fa);
    border-radius: 6px;
    width: 0%;
    transition: width 0.4s ease;
    min-width: 0;
}

.member-list {
    margin: 24px 0;
}

.member-list h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d2939;
    margin-bottom: 16px;
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    margin: 6px 0;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 4px solid #d0d5dd;
    transition: all 0.2s ease;
}

.member-item:hover {
    background: #f2f4f7;
}

.member-item.completed {
    background: #ecfdf3;
    border-left-color: #039855;
}

.member-name {
    font-weight: 500;
    color: #344054;
    font-size: 14px;
}

.member-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 16px;
    font-weight: 500;
}

.status-pending {
    background: #fffaeb;
    color: #dc6803;
}

.status-completed {
    background: #ecfdf3;
    color: #039855;
}

.photo-upload {
    margin: 24px 0;
}

.camera-container {
    text-align: center;
    margin: 16px 0;
}

.camera-container video {
    border: 2px solid #e4e7ec;
    border-radius: 12px;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 16px 0;
}

.captured-photo {
    text-align: center;
    margin: 20px 0;
}

.captured-photo img {
    max-width: 320px;
    border: 2px solid #e4e7ec;
    border-radius: 12px;
}

.photo-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.manual-rollcall {
    margin: 24px 0;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e4e7ec;
}

.manual-rollcall h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d2939;
    margin-bottom: 8px;
}

.manual-rollcall p {
    font-size: 14px;
    color: #667085;
    margin-bottom: 14px;
}

.manual-rollcall select {
    margin-bottom: 14px;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e4e7ec;
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.divider span {
    background: white;
    padding: 0 14px;
    color: #98a2b3;
    font-size: 14px;
}

.qr-scanner {
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 8% auto;
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1d2939;
    margin-bottom: 20px;
}

.close {
    color: #98a2b3;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close:hover {
    color: #344054;
}

#qrCode {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#qrCode img,
#qrCode canvas {
    border: 2px solid #e4e7ec;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.list-item {
    background: white;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 20px;
    margin: 12px 0;
    transition: box-shadow 0.2s ease;
}

.list-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.list-item-title {
    font-weight: 600;
    color: #1d2939;
    font-size: 16px;
}

.list-item-code {
    color: #1570ef;
    font-weight: 600;
    font-size: 14px;
    background: #eff8ff;
    padding: 4px 12px;
    border-radius: 16px;
}

.list-item p {
    font-size: 13px;
    color: #667085;
    margin: 4px 0;
}

.list-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.record-group {
    margin-bottom: 20px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.record-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8f9fc;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.record-group-header:hover {
    background: #eef1f6;
}

.record-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: #1d2939;
}

.record-group-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.record-group-body {
    padding: 8px 16px 16px;
}

.record-item {
    background: white;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 18px;
    margin: 10px 0;
    transition: box-shadow 0.2s ease;
}

.record-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.record-name {
    font-weight: 600;
    color: #1d2939;
}

.record-time {
    color: #98a2b3;
    font-size: 12px;
}

.record-item p {
    font-size: 13px;
    color: #667085;
    margin: 2px 0;
}

.fp-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e4e7ec;
}

.fp-hash-badge {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.5px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-toggle-btn {
    font-size: 12px !important;
    padding: 4px 10px !important;
    gap: 4px !important;
}

.fp-detail {
    margin-top: 12px;
    padding: 16px;
    background: #f8f9fc;
    border-radius: 10px;
    border: 1px solid #e4e7ec;
    animation: fpSlideIn 0.25s ease;
}

@keyframes fpSlideIn {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 600px; }
}

.fp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.fp-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0;
    border-bottom: 1px solid #eef0f4;
}

.fp-field:last-child,
.fp-field:nth-last-child(2) {
    border-bottom: none;
}

.fp-label {
    font-size: 11px;
    font-weight: 600;
    color: #98a2b3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fp-value {
    font-size: 13px;
    color: #344054;
    word-break: break-all;
    font-family: 'Inter', monospace;
}

@media (max-width: 768px) {
    .fp-grid {
        grid-template-columns: 1fr;
    }
    .fp-summary {
        flex-wrap: wrap;
    }
}

.notification-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    max-width: 400px;
    min-width: 320px;
    padding: 20px 24px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    animation: toastSlideIn 0.35s ease-out;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.notification-toast.success { border-left: 4px solid #039855; }
.notification-toast.error { border-left: 4px solid #d92d20; }
.notification-toast.warning { border-left: 4px solid #dc6803; }
.notification-toast.info { border-left: 4px solid #1570ef; }

@keyframes toastSlideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(400px); opacity: 0; }
}

.notification-toast .toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.notification-toast .toast-content {
    flex: 1;
}

.notification-toast .toast-title {
    font-weight: 600;
    font-size: 15px;
    color: #1d2939;
    margin-bottom: 4px;
}

.notification-toast .toast-message {
    font-size: 14px;
    color: #667085;
    line-height: 1.5;
}

.notification-toast .toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #98a2b3;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.notification-toast .toast-close:hover {
    color: #344054;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #1570ef;
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring:nth-child(2) {
    border-top-color: #667eea;
    animation-delay: -0.5s;
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
}

.spinner-ring:nth-child(3) {
    border-top-color: #764ba2;
    animation-delay: -1s;
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #98a2b3;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    stroke: #d0d5dd;
}

.empty-state p {
    font-size: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.badge-blue { background: #eff8ff; color: #1570ef; }
.badge-green { background: #ecfdf3; color: #039855; }
.badge-red { background: #fef3f2; color: #d92d20; }
.badge-yellow { background: #fffaeb; color: #dc6803; }

@media (max-width: 1280px) {
    .login-right { padding: 0 80px; }
}

@media (max-width: 1024px) {
    .login-left { width: 400px; }
    .login-right { padding: 0 48px; }
    .main-content { padding: 24px; }
}

@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .login-left {
        width: 100%;
        height: 180px;
        flex-shrink: 0;
    }

    .login-left .bg-image {
        align-items: center;
        padding: 24px;
    }

    .login-left .bg-text {
        font-size: 22px;
        text-align: center;
    }

    .login-left .bg-text span {
        font-size: 14px;
    }

    .login-right {
        padding: 28px 20px;
        flex: 1;
    }

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

    .login-header h1 { font-size: 26px; line-height: 36px; }

    .input-wrapper { height: 54px; padding: 0 16px; gap: 12px; }

    .btn-login { padding: 12px 24px; font-size: 15px; }

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

    .app-sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        flex-direction: row;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
        border-right: none;
        border-top: 1px solid #e8e8e8;
        z-index: 200;
    }

    .sidebar-header { display: none; }

    .sidebar-nav {
        flex: 1;
        display: flex;
        flex-direction: row;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .sidebar-nav::-webkit-scrollbar { display: none; }

    .nav-item {
        flex-direction: column;
        height: auto;
        padding: 8px 4px;
        margin: 0;
        border-radius: 0;
        gap: 4px;
        font-size: 11px;
        min-width: 0;
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    .nav-item .nav-icon svg { width: 18px; height: 18px; }

    .sidebar-user { display: none; }

    .main-content {
        margin-left: 0;
        padding: 16px 16px 80px;
        min-height: calc(100vh - 60px);
    }

    .page-header h2 { font-size: 20px; }
    .page-header p { font-size: 13px; }

    .card { padding: 18px; border-radius: 10px; }
    .card h3 { font-size: 15px; margin-bottom: 14px; }

    .form-group label { font-size: 13px; }
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 14px;
        font-size: 14px;
    }

    .btn { padding: 10px 16px; font-size: 13px; }
    .btn-lg { padding: 12px 20px; font-size: 14px; }

    .list-item { padding: 16px; }
    .list-item-header { flex-direction: column; gap: 8px; align-items: flex-start; }
    .list-item-actions { flex-wrap: wrap; }

    .member-item { padding: 12px 14px; }

    .progress-info { font-size: 13px; }

    .modal-content {
        width: 92%;
        margin: 20% auto;
        padding: 24px;
    }

    .camera-container video {
        width: 100%;
        height: auto;
        max-height: 60vh;
    }

    .captured-photo img {
        max-width: 100%;
    }

    .manual-rollcall { padding: 18px; }

    .panel-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-left { height: 140px; }
    .login-left .bg-text { font-size: 20px; }
    .login-right { padding: 24px 16px; }
    .login-container { gap: 22px; }
    .login-header h1 { font-size: 22px; line-height: 30px; }
    .input-wrapper { height: 50px; }

    .main-content { padding: 12px 12px 80px; }

    .card { padding: 14px; }

    .btn-login { width: 100%; justify-content: center; }
    .action-row { justify-content: center; }

    .login-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .nav-item { font-size: 10px; padding: 6px 2px; }
    .nav-item .nav-icon svg { width: 16px; height: 16px; }
}
