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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: #f0f9f0;
    color: #333;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.login-left {
    width: 50%;
    padding: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

.login-left h1 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 600;
}

.login-left p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
}

.feature-item .icon {
    font-size: 24px;
}

.feature-item .text {
    font-size: 14px;
    font-weight: 500;
}

.login-right {
    width: 50%;
    padding: 50px;
}

.login-right h2 {
    font-size: 26px;
    color: #333;
    margin-bottom: 8px;
}

.login-right .subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 35px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fafafa;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

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

.btn-success {
    background: #27ae60;
    color: #fff;
}

.btn-success:hover {
    background: #1e8449;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

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

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

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn-group .btn {
    width: auto;
    flex: 0 1 auto;
}

.link {
    text-align: center;
    margin-top: 25px;
}

.link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.link a:hover {
    text-decoration: underline;
}

.extra-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.extra-links a {
    color: #999;
    font-size: 14px;
    text-decoration: none;
}

.extra-links a:hover {
    color: #667eea;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: #27ae60;
    color: #fff;
}

.admin-sidebar .logo {
    padding: 25px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.admin-sidebar nav ul {
    list-style: none;
}

.admin-sidebar nav ul li a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.admin-sidebar nav ul li a:hover,
.admin-sidebar nav ul li a.active {
    background: rgba(0,0,0,0.15);
}

.admin-main {
    flex: 1;
    padding: 25px;
}

.admin-header {
    background: #fff;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-header h2 {
    color: #27ae60;
}

.logout-btn {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.card h3 {
    color: #27ae60;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e8;
}

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

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background: #f8fef8;
    color: #27ae60;
    font-weight: 600;
}

table tr:hover {
    background: #f8fef8;
}

.enterprise-layout {
    display: flex;
    min-height: 100vh;
}

.enterprise-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
}

.enterprise-sidebar .logo {
    padding: 25px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.enterprise-sidebar nav ul {
    list-style: none;
}

.enterprise-sidebar nav ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.enterprise-sidebar nav ul li a:hover {
    background: rgba(0,0,0,0.15);
}

.enterprise-sidebar nav ul li a .menu-icon {
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}

.enterprise-sidebar nav ul li a .menu-text {
    flex: 1;
}

.enterprise-sidebar nav ul li.menu-title {
    padding: 14px 20px;
    background: rgba(0,0,0,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 600;
}

.enterprise-main {
    flex: 1;
    padding: 25px;
}

.enterprise-header {
    background: #fff;
    padding: 18px 28px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.enterprise-header h2 {
    color: #27ae60;
    font-size: 22px;
}

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

.dashboard-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.dashboard-card .number {
    font-size: 36px;
    font-weight: bold;
    color: #27ae60;
    margin: 10px 0;
}

.dashboard-card .label {
    color: #666;
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}

.pagination .active {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.text-right {
    text-align: right;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-unpaid {
    background: #fff3cd;
    color: #856404;
}

.status-partial {
    background: #cce5ff;
    color: #004085;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-overdue {
    background: #f8d7da;
    color: #721c24;
}

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

.quick-action {
    display: block;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.quick-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.quick-action .icon {
    font-size: 30px;
    color: #27ae60;
    margin-bottom: 10px;
}

.data-table {
    overflow-x: auto;
}

.btn-service {
    background: none;
    border: none;
    color: #667eea;
    width: 100%;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    margin-top: 15px;
}

.btn-service:hover {
    transform: none;
    box-shadow: none;
    color: #764ba2;
    text-decoration: underline;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.modal .qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
}

.modal .qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal p {
    color: #666;
    margin-bottom: 20px;
}

.modal .close-btn {
    background: #eee;
    color: #333;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.modal .close-btn:hover {
    background: #ddd;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-left,
    .login-right {
        width: 100%;
    }

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

    .form-row-2 {
        grid-template-columns: 1fr;
    }
}
