/* HostWoo Frontend Styles */

/* Domain Checker */
.hostwoo-domain-checker {
    max-width: 800px;
    margin: 0 auto;
}

.hostwoo-domain-search-box {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.hostwoo-domain-search-box h2 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 28px;
}

.hostwoo-subtitle {
    opacity: 0.9;
    margin-bottom: 24px;
}

.hostwoo-search-input-group {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hostwoo-search-input-group input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.hostwoo-search-input-group button {
    padding: 14px 28px;
    border: none;
    cursor: pointer;
}

/* Buttons */
.hostwoo-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #f7f7f7;
    color: #333;
    transition: all 0.2s;
}

.hostwoo-btn:hover {
    background: #e7e7e7;
}

.hostwoo-btn-primary {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.hostwoo-btn-primary:hover {
    background: #005177;
    color: #fff;
}

.hostwoo-btn-danger {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.hostwoo-btn-danger:hover {
    background: #c82333;
    color: #fff;
}

.hostwoo-btn-small {
    padding: 5px 12px;
    font-size: 12px;
}

/* Domain Results */
.hostwoo-domain-results {
    margin-top: 20px;
}

.hostwoo-primary-result {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hostwoo-domain-available {
    border-left: 4px solid #28a745;
}

.hostwoo-domain-unavailable {
    border-left: 4px solid #dc3545;
}

.hostwoo-domain-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.hostwoo-domain-result-item .domain-name {
    font-weight: 600;
    font-size: 16px;
}

.hostwoo-domain-result-item .domain-price {
    color: #28a745;
    font-weight: 700;
    font-size: 18px;
    margin: 0 16px;
}

.hostwoo-domain-result-item .domain-status-taken {
    color: #dc3545;
}

/* Spinner */
.hostwoo-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hostwoo-spin 0.8s linear infinite;
}

@keyframes hostwoo-spin {
    to { transform: rotate(360deg); }
}

/* Client Area Dashboard */
.hostwoo-client-area {
    max-width: 1200px;
    margin: 0 auto;
}

.hostwoo-dashboard-header h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.hostwoo-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.hostwoo-stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-top: 3px solid #0073aa;
}

.hostwoo-stat-card.hostwoo-stat-warning {
    border-top-color: #ffc107;
}

.hostwoo-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.hostwoo-stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

/* Dashboard Grid */
.hostwoo-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.hostwoo-dashboard-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hostwoo-dashboard-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Tables */
.hostwoo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

.hostwoo-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hostwoo-table-striped tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.hostwoo-table tbody tr:hover {
    background: #f0f6fc;
}

/* Badges */
.hostwoo-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hostwoo-badge-success { background: #d4edda; color: #155724; }
.hostwoo-badge-warning { background: #fff3cd; color: #856404; }
.hostwoo-badge-danger { background: #f8d7da; color: #721c24; }
.hostwoo-badge-secondary { background: #e2e3e5; color: #383d41; }

.hostwoo-invoice-paid { background: #d4edda; color: #155724; }
.hostwoo-invoice-unpaid { background: #fff3cd; color: #856404; }
.hostwoo-invoice-overdue { background: #f8d7da; color: #721c24; }

.hostwoo-ticket-open { background: #cce5ff; color: #004085; }
.hostwoo-ticket-answered { background: #d4edda; color: #155724; }
.hostwoo-ticket-customer-reply { background: #fff3cd; color: #856404; }
.hostwoo-ticket-closed { background: #e2e3e5; color: #383d41; }

.hostwoo-priority-low { color: #28a745; }
.hostwoo-priority-medium { color: #ffc107; }
.hostwoo-priority-high { color: #dc3545; font-weight: 700; }

/* Service Cards */
.hostwoo-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.hostwoo-service-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.hostwoo-service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.hostwoo-service-card-header h4 {
    margin: 0;
    font-size: 16px;
}

.hostwoo-service-card-body {
    padding: 16px;
}

.hostwoo-service-card-body p {
    margin: 6px 0;
    font-size: 14px;
}

.hostwoo-service-card-footer {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Quick Links */
.hostwoo-quick-links {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hostwoo-quick-links h3 {
    margin-top: 0;
}

.hostwoo-quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.hostwoo-quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0f6fc;
    border-radius: 6px;
    text-decoration: none;
    color: #0073aa;
    font-weight: 600;
    transition: all 0.2s;
}

.hostwoo-quick-link:hover {
    background: #0073aa;
    color: #fff;
}

/* Empty State */
.hostwoo-empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.hostwoo-empty {
    color: #999;
    font-style: italic;
}

/* Card */
.hostwoo-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Ticket Form */
.hostwoo-tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#hostwoo-ticket-form .form-row {
    margin-bottom: 16px;
}

#hostwoo-ticket-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

#hostwoo-ticket-form input[type="text"],
#hostwoo-ticket-form textarea,
#hostwoo-ticket-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Hosting Domain Field */
.hostwoo-hosting-domain-field {
    margin: 16px 0;
    padding: 16px;
    background: #f0f6fc;
    border-radius: 8px;
    border: 1px solid #d4e5f7;
}

.hostwoo-hosting-domain-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.hostwoo-hosting-domain-field input,
.hostwoo-hosting-domain-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.hostwoo-hosting-domain-field small {
    display: block;
    margin-top: 4px;
    color: #666;
}

/* Invoice PDF Template */
.hostwoo-invoice-pdf {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.hostwoo-invoice-pdf .invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0073aa;
}

.hostwoo-invoice-pdf .invoice-items {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.hostwoo-invoice-pdf .invoice-items th {
    background: #f5f5f5;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

.hostwoo-invoice-pdf .invoice-items td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.hostwoo-invoice-pdf .text-right {
    text-align: right;
}

.hostwoo-invoice-pdf .total-row td {
    border-top: 2px solid #333;
    font-size: 18px;
}

/* Login Required */
.hostwoo-login-required {
    max-width: 400px;
    margin: 40px auto;
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hostwoo-dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hostwoo-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .hostwoo-search-input-group {
        flex-direction: column;
    }

    .hostwoo-domain-result-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .hostwoo-services-grid {
        grid-template-columns: 1fr;
    }

    .hostwoo-table {
        font-size: 12px;
    }

    .hostwoo-table th,
    .hostwoo-table td {
        padding: 8px 6px;
    }
}
