/**
 * Akarsh ERP Frontend Styles
 */

/* Service Booking Form */
.akerp-booking-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.akerp-booking-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.akerp-form-group {
    margin-bottom: 20px;
}

.akerp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.akerp-form-group input,
.akerp-form-group select,
.akerp-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.akerp-form-group input:focus,
.akerp-form-group select:focus,
.akerp-form-group textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.akerp-submit-btn {
    background: #2271b1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.akerp-submit-btn:hover {
    background: #135e96;
}

/* Invoice Verification */
.akerp-invoice-verify {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    text-align: center;
}

.akerp-invoice-details {
    margin-top: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: left;
}

.akerp-invoice-details table {
    width: 100%;
}

.akerp-invoice-details td {
    padding: 8px;
}

/* Customer Panel */
.akerp-customer-panel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.akerp-customer-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.akerp-customer-stat {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.akerp-invoice-list table {
    width: 100%;
    border-collapse: collapse;
}

.akerp-invoice-list th,
.akerp-invoice-list td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .akerp-booking-form {
        padding: 20px;
        margin: 20px;
    }
    
    .akerp-customer-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .akerp-invoice-list {
        overflow-x: auto;
    }
}

/* Loading Spinner */
.akerp-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.akerp-success {
    background: #d1fae5;
    color: #065f46;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.akerp-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}