/* Domomat Signup Styles */
* {
    box-sizing: border-box;
}

.domomat-signup-container,
.domomat-login-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.domomat-dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.domomat-signup-form,
.domomat-login-form,
.domomat-dashboard {
    background: white;
    padding: 48px;
    border: 1px solid #b0b0b0 !important;
}

.domomat-signup-form h2,
.domomat-login-form h2,
.domomat-dashboard h2 {
    color: #005AAA;
    margin-bottom: 32px;
    margin-top: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.domomat-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.domomat-form-group {
    margin-bottom: 24px;
}

.domomat-form-row .domomat-form-group {
    margin-bottom: 0;
}

.domomat-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #005AAA;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.domomat-form-group input[type="text"],
.domomat-form-group input[type="email"],
.domomat-form-group input[type="password"],
.domomat-form-group input[type="tel"],
.domomat-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #999999 !important;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: border-color 0.2s;
    background: white;
}

.domomat-form-group input:focus,
.domomat-form-group textarea:focus {
    outline: none;
    border-color: #005AAA !important;
    border-width: 1px;
}

.domomat-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.domomat-form-group input[type="checkbox"] {
    margin-right: 8px;
}

.domomat-submit-btn {
    width: 100%;
    padding: 16px;
    background-color: #005AAA;
    color: white;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.domomat-submit-btn:hover {
    background-color: #004080;
}

.domomat-form-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.domomat-form-footer p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.domomat-form-footer a {
    color: #005AAA !important;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.domomat-form-footer a:hover {
    opacity: 0.7;
}

.domomat-error {
    background-color: #fff5f5;
    color: #c00;
    padding: 16px;
    margin-bottom: 24px;
    border-left: 3px solid #c00;
    font-size: 14px;
}

.domomat-error-label {
    background-color: #fff5f5;
    color: #d32f2f;
    padding: 16px 20px;
    margin-bottom: 24px;
    margin-top: 24px;
    font-size: 15px;
    font-weight: 400;
    text-align: left;
    border-left: 4px solid #d32f2f;
    line-height: 1.5;
}


.domomat-status {
    margin-bottom: 32px;
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #b0b0b0 !important;
}

.domomat-status strong {
    color: #005AAA;
    margin-right: 10px;
}

.domomat-status-approved {
    color: #0a8;
    font-weight: 600;
}

.domomat-status-rejected {
    color: #c00;
    font-weight: 600;
}

.domomat-status-pending {
    color: #fa0;
    font-weight: 600;
}

.domomat-user-info {
    background-color: #f8f8f8;
    padding: 24px;
    border: 1px solid #b0b0b0 !important;
}

.domomat-user-info h3 {
    color: #005AAA;
    margin-bottom: 15px;
    font-size: 20px;
}

.domomat-user-info p {
    margin-bottom: 10px;
    color: #333;
    line-height: 1.6;
}

.domomat-user-info strong {
    color: #005AAA;
}

.domomat-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #b0b0b0 !important;
}

.domomat-dashboard-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #b0b0b0 !important;
}

.domomat-dashboard-tabs .domomat-tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.domomat-dashboard-tabs .domomat-tab-btn:hover {
    color: #005AAA;
    background: #f8f8f8;
}

.domomat-dashboard-tabs .domomat-tab-btn.active {
    color: #005AAA;
    border-bottom-color: #005AAA !important;
}

.domomat-dashboard-tabs .domomat-tab-btn .tab-count {
    margin-left: 6px;
    color: #999;
    font-weight: 400;
}

.domomat-dashboard-tabs .domomat-tab-btn.active .tab-count {
    color: #005AAA;
}

.domomat-dashboard .domomat-tab-content {
    display: none;
}

.domomat-dashboard .domomat-tab-content.active {
    display: block;
}

.domomat-dashboard-header h2 {
    margin: 0;
}

.domomat-logout-btn {
    padding: 12px 24px;
    background-color: transparent;
    color: #005AAA;
    border: 1px solid #005AAA !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.domomat-logout-btn:hover {
    background-color: #005AAA;
    color: white !important;
}

.domomat-orders-section {
    margin-top: 32px;
    padding: 24px;
    background-color: #f8f8f8;
    border: 1px solid #b0b0b0 !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.domomat-orders-section h3 {
    color: #005AAA;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.domomat-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.domomat-orders-table th {
    background-color: #005AAA !important;
    color: white !important;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #005AAA !important;
}

.domomat-orders-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e5e5 !important;
    color: #333;
    font-size: 14px;
}

.domomat-orders-table tbody tr:hover {
    background-color: #f8f8f8;
}

.domomat-order-status {
    display: inline-block;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
}

.domomat-order-status-completed {
    background-color: #d4edda;
    color: #155724;
}

.domomat-order-status-processing {
    background-color: #d1ecf1;
    color: #0c5460;
}

.domomat-order-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.domomat-order-status-on-hold {
    background-color: #e2e3e5;
    color: #383d41;
}

.domomat-order-status-cancelled,
.domomat-order-status-failed,
.domomat-order-status-refunded {
    background-color: #f8d7da;
    color: #721c24;
}

.domomat-view-order-btn {
    color: #005AAA !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.domomat-view-order-btn:hover {
    opacity: 0.7;
    color: #005AAA !important;
}

.domomat-no-orders {
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Hide cart button if user is not logged in */
body:not(.logged-in) #domomat-cart-btn {
    display: none !important;
}

/* Hide signup button if user is logged in */
body.logged-in #domomat-signup-btn {
    display: none !important;
}

.domomat-cart-button-container {
    display: inline-block;
}

.domomat-cart-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: transparent;
    border: none;
    text-decoration: none;
    color: #005AAA !important;
    transition: opacity 0.2s;
    font-family: 'Inter', sans-serif;
    padding: 0;
}

.domomat-cart-button:hover {
    opacity: 0.7;
    color: #005AAA !important;
}

.domomat-cart-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

.domomat-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #005AAA;
    color: white !important;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    line-height: 1;
    min-width: 20px;
}

.domomat-profile-button-container {
    display: inline-block;
}

.domomat-profile-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: transparent;
    border: none;
    text-decoration: none;
    color: #005AAA !important;
    transition: opacity 0.2s;
    font-family: 'Inter', sans-serif;
    padding: 0;
    border-radius: 50%;
}

.domomat-profile-button:hover {
    opacity: 0.7;
    color: #005AAA !important;
}

.domomat-profile-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

.domomat-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5 !important;
}

.domomat-pagination-info {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.domomat-pagination-btn {
    padding: 10px 20px;
    background-color: transparent;
    color: #005AAA !important;
    border: 1px solid #005AAA !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.domomat-pagination-btn:hover {
    background-color: #005AAA;
    color: white !important;
}

/* Success Message */
.domomat-success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    display: none;
}

.domomat-success-message.show {
    display: flex;
}

.domomat-success-content {
    background: white;
    padding: 48px;
    max-width: 500px;
    text-align: center;
    border: 1px solid #b0b0b0 !important;
}

.domomat-success-content h2 {
    color: #005AAA;
    margin-bottom: 20px;
    font-size: 24px;
}

.domomat-success-content p {
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

.domomat-btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: #005AAA;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.domomat-btn:hover {
    background-color: #004080;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {

    .domomat-signup-container,
    .domomat-login-container,
    .domomat-dashboard-container {
        padding: 10px;
        margin: 20px auto;
    }

    .domomat-signup-form,
    .domomat-login-form,
    .domomat-dashboard {
        padding: 25px;
    }

    .domomat-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .domomat-form-row .domomat-form-group {
        margin-bottom: 24px;
    }

    .domomat-form-row .domomat-form-group:last-child {
        margin-bottom: 0;
    }

    .domomat-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .domomat-dashboard-header h2 {
        margin-bottom: 0;
    }

    .domomat-logout-btn {
        width: 100%;
        text-align: center;
    }

    .domomat-orders-section {
        overflow-x: auto;
    }

    .domomat-orders-table {
        font-size: 12px;
        min-width: 500px;
    }

    .domomat-orders-table th,
    .domomat-orders-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .domomat-orders-table th {
        font-size: 11px;
    }

    .domomat-dashboard-tabs {
        overflow-x: auto;
    }

    .domomat-dashboard-tabs .domomat-tab-btn {
        padding: 10px 16px;
        font-size: 12px;
        white-space: nowrap;
    }

    .domomat-pagination {
        flex-direction: column;
        gap: 15px;
    }

    .domomat-pagination-btn {
        width: 100%;
        text-align: center;
    }
}