.hk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.hk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.hk-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.hk-tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
}

.hk-tab.active {
    border: 1px solid #ddd;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
    border-radius: 4px 4px 0 0;
    background: #fff;
}

.hk-tab-content {
    display: none;
}

.hk-tab-content.active {
    display: block;
}

.hk-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.hk-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.hk-card.income {
    border-top: 4px solid #4caf50;
}

.hk-card.expense {
    border-top: 4px solid #f44336;
}

.hk-card.balance {
    border-top: 4px solid #2196f3;
}

.hk-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #555;
}

.hk-card .amount {
    font-size: 24px;
    font-weight: bold;
}

.hk-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.hk-form-group {
    margin-bottom: 15px;
}

.hk-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.hk-form-group input,
.hk-form-group select,
.hk-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.hk-form-actions {
    display: flex;
    gap: 10px;
}

.hk-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.hk-btn-primary {
    background: #4caf50;
    color: white;
}

.hk-btn-secondary {
    background: #2196f3;
    color: white;
}

.hk-btn-whatsapp {
    background: #25D366;
    color: white;
}

.hk-customers-list, .hk-transactions-list {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.hk-customer-item, .hk-transaction-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.hk-customer-item:last-child, .hk-transaction-item:last-child {
    border-bottom: none;
}

.hk-customer-details, .hk-transaction-details {
    flex: 1;
}

.hk-customer-actions, .hk-transaction-actions {
    display: flex;
    gap: 10px;
}

.hk-transaction-amount.income {
    color: #4caf50;
    font-weight: bold;
}

.hk-transaction-amount.expense {
    color: #f44336;
    font-weight: bold;
}

.hk-modal {
    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;
}

.hk-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.hk-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.hk-close {
    font-size: 24px;
    cursor: pointer;
}

.hk-customer-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.hk-details-transactions {
    margin-top: 20px;
}

.hk-details-transaction-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.hk-alert {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.hk-alert-success {
    background: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.hk-alert-error {
    background: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

@media (max-width: 768px) {
    .hk-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .hk-customer-summary {
        grid-template-columns: 1fr;
    }
    
    .hk-customer-item, .hk-transaction-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hk-customer-actions, .hk-transaction-actions {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-end;
    }
}