/**
 * Public styles for Simple Invoice Generator
 */

/* Invoice container */
.sig-invoice-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

/* Invoice header */
.sig-invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.sig-invoice-company {
    display: flex;
    align-items: flex-start;
}

.sig-company-logo {
    margin-right: 20px;
}

.sig-company-logo img {
    max-width: 150px;
    height: auto;
}

.sig-company-name {
    margin: 0 0 10px;
    font-size: 24px;
    color: #333;
}

.sig-company-address {
    margin: 0 0 10px;
    line-height: 1.5;
}

.sig-company-contact {
    margin: 0;
    color: #666;
}

.sig-invoice-meta {
    text-align: right;
}

.sig-invoice-title {
    margin: 0 0 10px;
    font-size: 36px;
    color: #333;
}

.sig-invoice-number {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.sig-invoice-date,
.sig-invoice-due-date,
.sig-invoice-status {
    margin: 5px 0;
}

.sig-label {
    font-weight: 600;
    margin-right: 5px;
}

/* Invoice addresses */
.sig-invoice-addresses {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.sig-invoice-from,
.sig-invoice-to {
    flex: 1;
    max-width: 48%;
}

.sig-invoice-to {
    text-align: right;
}

.sig-invoice-from h3,
.sig-invoice-to h3 {
    margin: 0 0 10px;
    font-size: 16px;
    text-transform: uppercase;
    color: #999;
}

.sig-name {
    margin: 0 0 5px;
    font-weight: 600;
}

.sig-address {
    margin: 0 0 5px;
    line-height: 1.5;
}

.sig-email {
    margin: 0;
    color: #666;
}

/* Invoice items */
.sig-invoice-items {
    margin-bottom: 40px;
}

.sig-items-table {
    width: 100%;
    border-collapse: collapse;
}

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

.sig-items-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.sig-items-table tfoot td {
    border-bottom: none;
    font-weight: 600;
}

.sig-total-label {
    text-align: right;
}

.sig-total-value {
    text-align: right;
}

/* Invoice notes */
.sig-invoice-notes {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.sig-invoice-notes h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.sig-invoice-notes p {
    margin: 0;
    line-height: 1.5;
}

/* Payment form */
.sig-invoice-payment {
    margin-bottom: 40px;
}

.sig-invoice-payment h3 {
    margin: 0 0 20px;
    font-size: 20px;
}

.sig-payment-form {
    max-width: 500px;
    margin: 0 auto;
}

.sig-card-element {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    margin-bottom: 20px;
}

.sig-card-errors {
    color: #dc3232;
    margin-bottom: 20px;
    font-size: 14px;
}

.sig-submit-payment {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sig-submit-payment:hover {
    background-color: #006291;
}

.sig-payment-processing,
.sig-payment-success {
    margin-top: 20px;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
}

.sig-payment-processing {
    background-color: #f9f9f9;
    color: #333;
}

.sig-payment-success {
    background-color: #dff0d8;
    color: #3c763d;
}

.sig-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: #0073aa;
    border-radius: 50%;
    animation: sig-spinner 1s linear infinite;
}

@keyframes sig-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Status indicators */
.sig-status-paid {
    color: #3c763d;
}

.sig-status-pending {
    color: #8a6d3b;
}

.sig-status-cancelled {
    color: #a94442;
}

/* Login form */
.sig-login-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sig-login-form h2 {
    margin: 0 0 20px;
    text-align: center;
    font-size: 24px;
}

.sig-login-form .sig-form-row {
    margin-bottom: 15px;
}

.sig-login-form .sig-form-field {
    margin-right: 0;
}

.sig-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.sig-login-form input[type="text"],
.sig-login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sig-login-form input[type="checkbox"] {
    margin-right: 5px;
}

.sig-login-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sig-login-button:hover {
    background-color: #006291;
}

/* Responsive */
@media (max-width: 768px) {
    .sig-invoice-header {
        flex-direction: column;
    }
    
    .sig-invoice-meta {
        margin-top: 20px;
        text-align: left;
    }
    
    .sig-invoice-addresses {
        flex-direction: column;
    }
    
    .sig-invoice-from,
    .sig-invoice-to {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .sig-invoice-to {
        text-align: left;
    }
    
    .sig-items-table th,
    .sig-items-table td {
        padding: 8px;
        font-size: 14px;
    }
} 