* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
}

.mobile-user-info {
    display: none;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav a:hover {
    background: rgba(255,255,255,0.2);
}

.user-info {
    font-size: 14px;
    opacity: 0.9;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: right 0.3s ease;
    padding-top: 80px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.mobile-nav a:hover {
    background: #f5f5f5;
}

.mobile-nav.mobile-open {
    right: 0;
}

.main-content {
    padding: 30px 20px;
    min-height: calc(100vh - 140px);
}

.footer {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    color: #999;
    font-size: 13px;
    border-top: 1px solid #eee;
}

.pending-notification {
    background: linear-gradient(135deg, #ff6b6b, #ffa94d);
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(255, 107, 107, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3); }
}

.pending-icon {
    font-size: 32px;
    animation: ring 1.5s infinite;
}

@keyframes ring {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(15deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.pending-content {
    flex: 1;
}

.pending-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.pending-count {
    font-size: 24px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.pending-desc {
    font-size: 13px;
    opacity: 0.9;
}

.pending-btn {
    background: #fff !important;
    color: #ff6b6b !important;
    border: none !important;
    font-weight: bold !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    transition: transform 0.2s !important;
}

.pending-btn:hover {
    transform: translateY(-2px);
}

.page-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-title h1 {
    font-size: 24px;
    color: #333;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.btn:hover {
    background: #f5f5f5;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

.btn-primary:hover {
    opacity: 0.9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-success {
    background: #52c41a;
    color: #fff;
    border-color: #52c41a;
}

.btn-success:hover {
    background: #45a816;
}

.btn-danger {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

.btn-danger:hover {
    background: #e64547;
}

.btn-warning {
    background: #faad14;
    color: #fff;
    border-color: #faad14;
}

.btn-warning:hover {
    background: #e09d12;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-link {
    color: #667eea;
    border-color: transparent;
    background: transparent;
    padding: 5px 8px;
}

.btn-link:hover {
    color: #764ba2;
    background: transparent;
}

.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 22px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.required {
    color: #ff4d4f;
}

.error-msg {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.alert-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.checkbox-item:hover {
    background: #f0f0f0;
}

.checkbox-item input {
    cursor: pointer;
}

.form-group .checkbox-item {
    display: flex;
}

.form-group > label .btn-sm {
    margin-left: 8px;
    vertical-align: middle;
}

.type-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #eef0f5;
    border-radius: 10px;
    background: #fbfcff;
}

.type-checkbox-group .checkbox-item {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 42px;
    border: 1px solid #edf0f7;
    background: #fff;
    line-height: 1.35;
    word-break: break-word;
}

.type-checkbox-group .checkbox-item:has(input:checked) {
    border-color: #667eea;
    background: #f4f6ff;
    color: #4f5fcf;
}

.table-desktop {
    display: table;
}

.table-mobile,
.card-list {
    display: none;
}

.data-table {
    width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.table th {
    background: #fafafa;
    font-weight: 600;
    color: #555;
}

.table-hover tbody tr:hover {
    background: #f9f9ff;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.status-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fffbe6;
    color: #faad14;
}

.status-pass {
    background: #f6ffed;
    color: #52c41a;
}

.status-reject {
    background: #fff2f0;
    color: #ff4d4f;
}

.type-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}

.empty-tip {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.search-bar input:focus {
    outline: none;
    border-color: #667eea;
}

.search-bar .btn {
    padding: 10px 20px;
}

.calendar-section {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h3 {
    font-size: 18px;
    color: #333;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
}

.calendar th,
.calendar td {
    width: 14.28%;
    text-align: center;
    padding: 10px;
    border: 1px solid #f0f0f0;
    font-size: 14px;
}

.calendar th {
    background: #fafafa;
    font-weight: 600;
    color: #666;
}

.calendar td {
    height: 50px;
    vertical-align: middle;
    cursor: pointer;
    transition: background 0.3s;
}

.calendar td:hover {
    background: #f9f9ff;
}

.calendar td.day-pass {
    background: #f6ffed;
    color: #52c41a;
    font-weight: bold;
}

.calendar td.day-reject {
    background: #fff2f0;
    color: #ff4d4f;
    font-weight: bold;
}

.calendar td.day-pending {
    background: #fffbe6;
    color: #faad14;
    font-weight: bold;
}

.calendar td.day-today {
    border: 2px solid #667eea;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.legend-pass { background: #52c41a; }
.legend-reject { background: #ff4d4f; }
.legend-pending { background: #faad14; }
.legend-today { background: #fff; border: 2px solid #667eea; }

.stats-section {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stats-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: #f9f9ff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-card.stat-pass { background: #f6ffed; }
.stat-card.stat-reject { background: #fff2f0; }
.stat-card.stat-pending { background: #fffbe6; }

.stat-num {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-pass .stat-num { color: #52c41a; }
.stat-reject .stat-num { color: #ff4d4f; }
.stat-pending .stat-num { color: #faad14; }

.stat-label {
    font-size: 14px;
    color: #666;
}

.type-stats h4 {
    margin-bottom: 15px;
    font-size: 15px;
    color: #555;
}

.text-green { color: #52c41a; }
.text-red { color: #ff4d4f; }

.list-section {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.list-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.form-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.list-footer {
    text-align: center;
    padding: 15px;
    color: #999;
    font-size: 13px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
    min-width: 36px;
    height: 36px;
}

.page-link:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f5f7ff;
}

.page-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
    font-weight: bold;
}

.page-info {
    margin-left: 15px;
    font-size: 13px;
    color: #999;
}

.detail-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.detail-card h2,
.detail-card h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-header h2 {
    margin-bottom: 0;
}

.detail-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-row {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #fafafa;
}

.detail-row:nth-last-child(-n+2) {
    border-bottom: none;
}

.detail-label {
    width: 100px;
    color: #999;
    font-size: 14px;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    color: #333;
    font-size: 14px;
    min-width: 0;
    word-break: break-word;
}

.log-list {
    margin-top: 10px;
}

.log-item {
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.log-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.log-user {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.log-action {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.log-action-create { background: #e6f7ff; color: #1890ff; }
.log-action-modify { background: #fffbe6; color: #faad14; }
.log-action-approve { background: #f6ffed; color: #52c41a; }
.log-action-reject { background: #fff2f0; color: #ff4d4f; }

.log-time {
    margin-left: auto;
    color: #999;
    font-size: 12px;
}

.log-remark {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}

.log-diff {
    margin-top: 10px;
}

.log-diff details {
    cursor: pointer;
}

.log-diff summary {
    color: #667eea;
    font-size: 13px;
    outline: none;
}

.diff-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}

.diff-old h5 { color: #ff4d4f; margin-bottom: 8px; }
.diff-new h5 { color: #52c41a; margin-bottom: 8px; }

.diff-box pre {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.log-content-detail {
    background: #fafafa;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
}

.log-row {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.log-row:last-child {
    margin-bottom: 0;
}

.log-label {
    color: #999;
    min-width: 80px;
    flex-shrink: 0;
}

.log-value {
    color: #333;
    word-break: break-all;
}

.rating-box {
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
}

.rating-stars {
    font-size: 24px;
    margin-bottom: 10px;
}

.star {
    color: #ddd;
    transition: color 0.3s;
}

.star.star-on {
    color: #faad14;
}

.star.star-off {
    color: #ddd;
    cursor: pointer;
}

.rating-input .star {
    cursor: pointer;
    font-size: 28px;
}

.rating-comment {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.rating-time {
    color: #999;
    font-size: 12px;
}

.animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.animation-box {
    background: #fff;
    padding: 50px 60px;
    border-radius: 20px;
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.animation-emoji {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.animation-text {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.anim-pass .animation-text {
    background: linear-gradient(135deg, #52c41a 0%, #95de64 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.anim-reject .animation-text {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.anim-modify_pass .animation-text {
    background: linear-gradient(135deg, #faad14 0%, #ffd666 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 12px 0;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .header .container {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-left {
        flex: none;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .header-right {
        flex: none;
        gap: 10px;
    }
    
    .user-info {
        font-size: 12px;
        color: rgba(255,255,255,0.85);
        background: rgba(255,255,255,0.15);
        padding: 5px 10px;
        border-radius: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
        background: rgba(255,255,255,0.2);
        border: 1px solid rgba(255,255,255,0.3);
        color: #fff;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 18px;
        cursor: pointer;
    }
    
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    
    .nav-overlay.mobile-open {
        display: block;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-user-info {
        display: inline-block;
        margin-left: 10px;
        font-size: 12px;
        opacity: 0.9;
    }
    
    .desktop-user-info {
        display: none;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .main-content {
        padding-top: 15px;
        padding-bottom: 60px;
    }
    
    .page-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .page-title h1 {
        font-size: 20px;
    }
    
    .page-title .btn:not(.btn-primary) {
        display: none;
    }
    
    .btn-sm {
        display: none;
    }
    
    .form-group > label .btn-sm {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        margin: 8px 0 0;
        padding: 5px 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-primary {
        width: 100%;
        text-align: center;
        display: block;
        pointer-events: auto;
    }
    
    .pending-notification {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
        text-align: center;
    }
    
    .pending-icon {
        font-size: 28px;
    }
    
    .pending-title {
        font-size: 16px;
    }
    
    .pending-btn {
        width: 100%;
        text-align: center;
    }
    
    .filter-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }
    
    .filter-bar .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        min-width: calc(25% - 6px);
        padding: 10px 0;
        font-size: 13px;
        text-align: center;
    }
    
    .filter-count {
        width: 100%;
        text-align: center;
        margin-top: 5px;
        font-size: 13px;
        color: #999;
    }
    
    .search-bar {
        display: flex;
        gap: 10px;
        padding: 12px;
    }
    
    .search-bar input {
        flex: 1;
        padding: 12px;
        font-size: 14px;
    }
    
    .search-bar .btn-primary {
        width: auto;
        flex-shrink: 0;
        padding: 12px 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .table-desktop {
        display: none;
    }
    
    .table-mobile {
        display: flex;
    }
    
    .card-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .apply-card {
        background: #fff;
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        overflow: hidden;
    }
    
    .apply-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .apply-id {
        font-weight: bold;
        color: #333;
        font-size: 15px;
    }
    
    .apply-card-body {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .apply-card-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
    }
    
    .apply-card-label {
        color: #999;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .apply-card-value {
        color: #333;
        font-size: 13px;
        text-align: right;
        word-break: break-all;
    }
    
    .apply-card-footer {
        margin-top: 15px;
        padding-top: 12px;
        border-top: 1px solid #f0f0f0;
        position: relative;
        z-index: 1;
    }
    
    .apply-card-footer .btn {
        width: 100%;
        display: block;
        position: relative;
        z-index: 2;
    }
    
    .calendar-section {
        overflow-x: auto;
    }
    
    .calendar {
        min-width: 320px;
    }
    
    .calendar td {
        height: 40px;
        font-size: 13px;
        padding: 5px;
    }
    
    .day-count {
        font-size: 10px;
        padding: 0 3px;
    }
    
    .detail-card h3 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .detail-card .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        pointer-events: auto;
    }
    
    .detail-card .btn-sm {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .detail-card form > .btn,
    .detail-card .form-actions .btn {
        width: 100%;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-num {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .list-section {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 400px;
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-link {
        min-width: 32px;
        height: 32px;
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .page-info {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .checkbox-item {
        font-size: 14px;
    }
    
    .type-checkbox-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        max-height: 240px;
        padding: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .type-checkbox-group .checkbox-item {
        align-items: flex-start;
        min-height: 44px;
        padding: 10px;
        font-size: 13px;
    }
    
    .type-checkbox-group .checkbox-item input {
        margin-top: 2px;
        flex-shrink: 0;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .detail-card {
        padding: 20px;
    }
    
    .detail-body {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        gap: 12px;
        align-items: flex-start;
    }
    
    .detail-label {
        width: 86px;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .status-tag {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .logs-list {
        gap: 10px;
    }
    
    .log-item {
        padding: 12px;
    }
    
    .log-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .diff-box {
        grid-template-columns: 1fr;
    }
    
    .diff-old,
    .diff-new {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .rating-section {
        padding: 20px;
    }
    
    .rating-stars {
        font-size: 32px;
    }
    
    .modal {
        width: 95%;
        max-width: 360px;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .day-app-item {
        padding: 10px 12px;
    }
    
    .wheel-container h1 {
        font-size: 24px;
    }
    
    .wheel-wrapper {
        width: 280px;
        height: 280px;
        margin: 0 auto 30px;
    }
    
    .wheel {
        width: 280px;
        height: 280px;
        border-width: 8px;
    }
    
    .wheel-label {
        padding-top: 15px;
        font-size: 13px;
    }
    
    .wheel-center {
        width: 55px;
        height: 55px;
        font-size: 16px;
    }
    
    .spin-btn {
        padding: 14px 40px;
        font-size: 18px;
    }
    
    .result {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
        text-align: center;
        display: block;
    }
    
    .stat-num {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .search-bar {
        display: flex;
        gap: 8px;
        padding: 10px;
    }
    
    .search-bar input {
        flex: 1;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .search-bar .btn-primary {
        width: auto;
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .pending-notification {
        padding: 12px;
    }
    
    .pending-title {
        font-size: 15px;
    }
    
    .pending-count {
        font-size: 20px;
    }
    
    .form-card {
        padding: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }
    
    .data-table {
        min-width: 350px;
    }
    
    .mobile-menu-btn {
        padding: 5px 10px;
        font-size: 16px;
    }
}
