/**
 * WebHostPartner Theme - Custom CSS
 *
 * Additional styles beyond Tailwind utility classes.
 */

/* Custom logo styling */
.custom-logo-link img {
    max-height: 40px;
    width: auto;
}

.login .custom-logo-link img,
aside .custom-logo-link img {
    filter: brightness(0) invert(1);
    max-height: 36px;
}

/* WooCommerce My Account overrides for partner portal */
.woocommerce-account .woocommerce-MyAccount-navigation {
    display: none; /* We use the sidebar instead */
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
    float: none;
    padding: 0;
}

/* Remove WooCommerce default styling */
.woocommerce-account .woocommerce {
    max-width: 100%;
}

/* WooCommerce form overrides */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.15s;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: #2563eb;
    color: #fff;
}

/* Login form styling */
.woocommerce-form-login {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-form-login .form-row {
    margin-bottom: 1rem;
}

.woocommerce-form-login label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.35rem;
    display: block;
}

.woocommerce-form-login .woocommerce-form-login__submit {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.woocommerce-message {
    background: #dcfce7;
    border-top-color: #22c55e;
    color: #166534;
}

.woocommerce-info {
    background: #dbeafe;
    border-top-color: #3b82f6;
    color: #1e40af;
}

.woocommerce-error {
    background: #fef2f2;
    border-top-color: #ef4444;
    color: #991b1b;
}

/* Smooth transitions */
[x-cloak] {
    display: none !important;
}

/* Sidebar active state animation */
aside nav a {
    position: relative;
    transition: all 0.15s ease;
}

/* Mobile sidebar is handled via Alpine.js + Tailwind classes in header.php */

/* Print styles */
@media print {
    aside,
    header,
    .whp-filters,
    .whp-pagination,
    .whp-btn {
        display: none !important;
    }

    main {
        padding: 0 !important;
    }

    .whp-table {
        font-size: 10pt;
    }
}
