/**
 * Hotels Worldwide Portal Styles
 * Frontend styles for login, dashboard, and pending approval pages
 */

/* Login Container */
.hww-login-container {
    max-width: 480px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.hww-login-box {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
}

.hww-login-box h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c5530;
    text-align: center;
    font-size: 1.75rem;
}

/* Form Styles */
.hww-form {
    width: 100%;
}

.hww-form-group {
    margin-bottom: 1.5rem;
}

.hww-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.hww-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.hww-form-control:focus {
    outline: none;
    border-color: #2c5530;
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.hww-form-checkbox label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.hww-form-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

/* Buttons */
.hww-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hww-button-primary {
    background: #2c5530;
    color: #ffffff;
}

.hww-button-primary:hover {
    background: #1e3a21;
}

.hww-button-secondary {
    background: #6c757d;
    color: #ffffff;
}

.hww-button-secondary:hover {
    background: #5a6268;
}

.hww-button-outline {
    background: transparent;
    border: 2px solid #2c5530;
    color: #2c5530;
}

.hww-button-outline:hover {
    background: #2c5530;
    color: #ffffff;
}

.hww-button-full {
    width: 100%;
}

.hww-button-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.hww-button-loader {
    display: none;
}

.hww-button.loading .hww-button-text {
    display: none;
}

.hww-button.loading .hww-button-loader {
    display: inline;
}

/* Messages */
.hww-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.hww-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.hww-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.hww-message-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Form Footer */
.hww-form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.hww-link {
    color: #2c5530;
    text-decoration: none;
    font-weight: 600;
}

.hww-link:hover {
    text-decoration: underline;
}

/* Pending Approval Page */
.hww-pending-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.hww-pending-box {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 3rem 2.5rem;
    text-align: center;
}

.hww-status-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hww-status-icon-pending {
    color: #ffc107;
}

.hww-status-icon-rejected {
    color: #dc3545;
}

.hww-pending-box h2 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.hww-account-info {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.hww-account-info h3 {
    margin-top: 0;
    color: #2c5530;
}

.hww-note {
    font-style: italic;
    color: #6c757d;
    margin: 1.5rem 0;
}

.hww-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.hww-contact-support {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

/* Dashboard */
.hww-dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hww-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #2c5530;
}

.hww-dashboard-welcome h1 {
    margin: 0;
    color: #2c5530;
    font-size: 2rem;
}

.hww-company-name {
    color: #6c757d;
    margin: 0.5rem 0 0 0;
}

.hww-dashboard-section {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.hww-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hww-section-header h2 {
    margin: 0;
    color: #2c5530;
}

/* Filters */
.hww-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.hww-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hww-filter-group label {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Table */
.hww-table-container {
    overflow-x: auto;
}

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

.hww-table thead {
    background: #2c5530;
    color: #ffffff;
}

.hww-table th,
.hww-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.hww-table tbody tr:hover {
    background: #f8f9fa;
}

.hww-table-actions {
    display: flex;
    gap: 0.5rem;
}

/* Status Badges */
.hww-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.hww-status-paid {
    background: #d4edda;
    color: #155724;
}

.hww-status-unpaid {
    background: #fff3cd;
    color: #856404;
}

.hww-status-overdue {
    background: #f8d7da;
    color: #721c24;
}

/* Loading State */
.hww-loading {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.hww-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Empty State */
.hww-empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.hww-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Modal */
.hww-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.hww-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hww-modal-content {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.hww-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.hww-modal-header h3 {
    margin: 0;
    color: #2c5530;
}

.hww-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    line-height: 1;
}

.hww-modal-close:hover {
    color: #333;
}

.hww-modal-body {
    padding: 1.5rem;
}

.hww-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

/* Pagination */
.hww-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.hww-pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: #ffffff;
    cursor: pointer;
    border-radius: 4px;
}

.hww-pagination button:hover {
    background: #f8f9fa;
}

.hww-pagination button.active {
    background: #2c5530;
    color: #ffffff;
    border-color: #2c5530;
}

/* Responsive */
@media (max-width: 768px) {
    .hww-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hww-filters {
        flex-direction: column;
    }

    .hww-filter-group {
        width: 100%;
    }

    .hww-actions {
        flex-direction: column;
    }

    .hww-table-container {
        font-size: 0.875rem;
    }

    .hww-table th,
    .hww-table td {
        padding: 0.5rem;
    }
}

