:root {
    --primary: #0ea5a4;
    --primary-dark: #0b8a89;
    --secondary: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-light: #64748b;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}

/* Client Portal Layout */
.rg-client-portal {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.rg-portal-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar Styles */
.rg-portal-sidebar {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0;
    overflow: hidden;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.rg-sidebar-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    margin-bottom: 0;
}

.rg-sidebar-header h3 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.rg-sidebar-tabs {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.rg-sidebar-tab {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    background: white;
}

.rg-sidebar-tab:hover {
    background: var(--light);
    color: var(--primary);
}

.rg-sidebar-tab.active {
    background: var(--primary);
    color: white;
    border-left: 4px solid var(--primary-dark);
}

.rg-sidebar-tab.active .rg-tab-text {
    color: white;
}

.rg-sidebar-tab.active .rg-tab-text small {
    color: rgba(255, 255, 255, 0.8);
}

.rg-tab-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rg-tab-text strong {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.rg-tab-text small {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.8;
}

.rg-sidebar-logout {
    padding: 20px 25px;
    border-top: 1px solid var(--border);
}

.rg-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--danger);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.rg-logout-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Main Content Area */
.rg-portal-main {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0;
    overflow: hidden;
    width: 100%;
    min-height: 600px;
}

.rg-main-header {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.rg-main-header h2 {
    margin: 0 0 8px 0;
    color: var(--text);
    font-size: 1.8rem;
    font-weight: 700;
}

.rg-main-header p {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
}

/* Back Button */
.rg-back-button {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
}

.rg-back-button .rg-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* Detailed Order View */
.rg-detailed-order-view {
    padding: 0;
}

.rg-detailed-order {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.rg-order-summary,
.rg-detailed-items,
.rg-billing-info,
.rg-detailed-documents {
    background: var(--light);
    padding: 25px;
    border-radius: var(--radius);
}

.rg-order-summary h4,
.rg-detailed-items h4,
.rg-billing-info h4,
.rg-detailed-documents h4 {
    margin: 0 0 20px 0;
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 600;
}

.rg-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.rg-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.rg-summary-item:last-child {
    border-bottom: none;
}

.rg-detailed-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rg-detailed-item {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.rg-detailed-item h5 {
    margin: 0 0 15px 0;
    color: var(--text);
    font-size: 1.1rem;
}

.rg-item-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0px;
}

.rg-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rg-detail-item.full-width {
    grid-column: 1 / -1;
}

.rg-detail-item strong {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.rg-services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.rg-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--light);
    border-radius: 4px;
}

.rg-address-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.rg-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.rg-document-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.rg-document-icon {
    font-size: 2rem;
}

.rg-document-info {
    flex: 1;
}

.rg-document-info h6 {
    margin: 0 0 5px 0;
    color: var(--text);
    font-size: 1rem;
}

.rg-document-info p {
    margin: 2px 0;
    color: var(--text-light);
    font-size: 0.8rem;
}

.rg-document-actions {
    display: flex;
    gap: 8px;
}

/* Orders Grid */
.rg-orders-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
}

.rg-order-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.rg-order-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.rg-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.rg-order-title h4 {
    margin: 0 0 5px 0;
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 600;
}

.rg-order-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.rg-order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-on-hold {
    background: #f3e8ff;
    color: #6b21a8;
}

.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

/* Container Items */
.rg-container-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.rg-container-item {
    background: var(--light);
    padding: 15px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.rg-item-name {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 1.1rem;
}

.rg-item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0px;
}

.rg-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rg-detail-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
}

.rg-detail-value {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.rg-service-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 2px 4px 2px 0;
}

/* Order Meta */
.rg-order-details {
    margin-bottom: 20px;
}

.rg-order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.rg-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--light);
    border-radius: var(--radius);
}

.rg-meta-label {
    font-weight: 600;
    color: var(--text);
}

.rg-meta-value {
    color: var(--primary);
    font-weight: 700;
}

/* Uploaded Documents */
.rg-uploaded-documents {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.rg-uploaded-documents h5 {
    margin: 0 0 15px 0;
    color: var(--text);
    font-size: 1rem;
}

.rg-documents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rg-document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.rg-document-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.rg-document-icon {
    font-size: 1.2rem;
}

.rg-document-name {
    font-weight: 600;
    color: var(--text);
}

.rg-document-meta {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-left: auto;
}

.rg-btn-small {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.rg-btn-small:hover {
    background: var(--primary-dark);
    color: white;
}

.rg-btn-danger {
    padding: 6px 12px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rg-btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

.rg-btn-danger:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Order Actions */
.rg-order-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.rg-btn-primary,
.rg-btn-outline {
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rg-btn-primary {
    background: var(--primary);
    color: white;
}

.rg-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.rg-btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.rg-btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Customer Details Form */
.rg-customer-details {
    padding: 30px;
}

.rg-profile-form {
    max-width: 100%;
}

.rg-form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--light);
    border-radius: var(--radius);
}

.rg-form-section h3 {
    margin: 0 0 20px 0;
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 600;
}

.rg-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.rg-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rg-form-group.full-width {
    grid-column: 1 / -1;
}

.rg-form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.rg-form-control {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.rg-form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.1);
}

.rg-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 30px;
}

.rg-form-status {
    margin-top: 20px;
}

/* No Data States */
.rg-no-data {
    text-align: center;
    padding: 60px 30px;
    color: var(--text-light);
}

.no-data-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.rg-no-data h4 {
    margin: 0 0 10px 0;
    color: var(--text);
    font-size: 1.3rem;
}

.rg-no-data p {
    margin: 0 0 25px 0;
    font-size: 1rem;
}

/* Upload Form */
.rg-upload-form-container {
    margin-top: 20px;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.rg-upload-form h5 {
    margin: 0 0 15px 0;
    color: var(--text);
    font-size: 1.1rem;
}

.rg-form-group {
    margin-bottom: 20px;
}

.rg-file-upload {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.rg-file-upload:hover {
    border-color: var(--primary);
}

.rg-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.rg-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.rg-upload-text {
    font-weight: 600;
    color: var(--text);
}

.rg-upload-hint {
    color: var(--text-light);
    font-size: 0.9rem;
}

.rg-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.rg-upload-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.rg-upload-status.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.rg-upload-status.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.rg-upload-loading {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* File List */
.rg-file-list {
    margin-top: 10px;
}

.rg-file-list-header {
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.rg-file-item {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 5px;
    border-left: 3px solid var(--primary);
}

/* Payment Slip Styles */
.rg-status-completed {
    color: #10b981;
    font-weight: 600;
}

.rg-status-pending {
    color: #f59e0b;
    font-weight: 600;
}

.rg-upload-info {
    background: #f0f9ff;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #0ea5a4;
    margin-bottom: 15px;
    font-size: 14px;
}

.rg-file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px dashed #e2e8f0;
}

/* Login Form */
.rg-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.rg-login-form {
    background: white;
    padding: 0;
    border-radius: var(--radius);

    width: 100%;
    max-width: 450px;
    text-align: center;
}

.rg-login-form h2 {
    margin: 0 0 10px 0;
    color: var(--text);
    font-size: 1.5rem;
}

.rg-login-form p {
    margin: 0 0 30px 0;
    color: var(--text-light);
}

.rg-login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.9rem;
}

.rg-login-links a {
    color: var(--primary);
    text-decoration: none;
}

.rg-login-links a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.rg-client-dashboard {
    padding: 30px;
}

.rg-welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.rg-welcome-section h2 {
    color: var(--text);
    margin-bottom: 10px;
}

.rg-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.rg-stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 4px solid var(--primary);
}

.rg-stat-content h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--primary);
}

.rg-quick-actions {
    margin-bottom: 40px;
}

.rg-action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.rg-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    background: white;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.rg-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.rg-action-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.rg-recent-orders {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rg-recent-order {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Modal Styles */
.rg-document-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.rg-document-modal-content {
    background: white;
    border-radius: var(--radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rg-document-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: var(--primary);
    color: white;
}

.rg-document-modal-title {
    margin: 0;
    color: white;
}

.rg-document-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rg-document-modal-body {
    flex: 1;
    padding: 20px;
    overflow: auto;
}

.rg-document-modal-body iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.rg-document-modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Confirmation Dialog */
.rg-confirm-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.rg-confirm-content {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.rg-confirm-title {
    margin: 0 0 15px 0;
    color: var(--text);
}

.rg-confirm-message {
    margin: 0 0 25px 0;
    color: var(--text-light);
}

.rg-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.rg-btn-cancel {
    padding: 10px 20px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

.rg-btn-confirm {
    padding: 10px 20px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

/* Notifications */
.rg-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    z-index: 10002;
    box-shadow: var(--shadow);
}

.rg-notification-success {
    background: var(--success);
}

.rg-notification-error {
    background: var(--danger);
}

.rg-notification-info {
    background: var(--primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .rg-portal-layout {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .rg-client-portal {
        padding: 15px;
    }

    .rg-portal-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rg-portal-sidebar {
        position: static;
    }

    .rg-main-header {
        padding: 25px 20px;
    }

    .rg-detailed-order {
        padding: 20px;
    }

    .rg-orders-grid {
        padding: 20px;
    }

    .rg-order-card {
        padding: 20px;
    }

    .rg-order-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .rg-order-actions {
        flex-direction: column;
    }

    .rg-btn-primary,
    .rg-btn-outline {
        width: 100%;
        justify-content: center;
    }

    .rg-customer-details {
        padding: 20px;
    }

    .rg-form-grid {
        grid-template-columns: 1fr;
    }

    .rg-dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .rg-action-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .rg-client-portal {
        padding: 10px;
    }

    .rg-main-header {
        padding: 20px 15px;
    }

    .rg-main-header h2 {
        font-size: 1.5rem;
    }

    .rg-detailed-order {
        padding: 15px;
        gap: 20px;
    }

    .rg-order-summary,
    .rg-detailed-items,
    .rg-billing-info,
    .rg-detailed-documents {
        padding: 20px;
    }

    .rg-orders-grid {
        padding: 15px;
    }

    .rg-order-card {
        padding: 15px;
    }

    .rg-item-details {
        grid-template-columns: 1fr;
    }

    .rg-order-meta {
        grid-template-columns: 1fr;
    }

    .rg-summary-grid {
        grid-template-columns: 1fr;
    }

    .rg-documents-grid {
        grid-template-columns: 1fr;
    }

    .rg-customer-details {
        padding: 15px;
    }

    .rg-form-section {
        padding: 20px;
    }

    .rg-login-form {
        padding: 30px 20px;
    }

    .rg-dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* ✅ IMPROVED LOGIN FORM STYLES */
.rg-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* WooCommerce login form styling */
.rg-login-form .woocommerce-form-login {
    text-align: left;
}

.rg-login-form .form-row {
    margin-bottom: 20px;
}

.rg-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.rg-login-form input[type="text"],
.rg-login-form input[type="password"],
.rg-login-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.rg-login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.1);
}

.rg-login-form .woocommerce-form-login__submit {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.rg-login-form .woocommerce-form-login__submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.rg-login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.9rem;
}

.rg-login-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.rg-login-links a:hover {
    text-decoration: underline;
}

/* WordPress default login form styling */
.rg-login-form .login-form {
    text-align: left;
}

.rg-login-form .login-username,
.rg-login-form .login-password {
    margin-bottom: 20px;
}

.rg-login-form .login-submit {
    margin-bottom: 20px;
}

.rg-login-form .login-remember {
    margin-bottom: 15px;
}

/* ✅ LOGIN/REGISTRATION TAB SYSTEM */
.rg-login-tabs {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

.rg-tab-headers {
    display: flex;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.rg-tab-header {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
}

.rg-tab-header.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: white;
}

.rg-tab-header:hover:not(.active) {
    background: rgba(14, 165, 164, 0.1);
    color: var(--primary);
}

.rg-tab-content {
    display: none;
    padding: 40px;
}

.rg-tab-content.active {
    display: block;
}

/* ✅ REGISTRATION FORM STYLES */
.rg-register-form h2 {
    margin: 0 0 10px 0;
    color: var(--text);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
}

.rg-register-form p {
    margin: 0 0 30px 0;
    color: var(--text-light);
    text-align: center;
    font-size: 1rem;
}

.rg-register-form-inner {
    text-align: left;
}

.rg-register-form .rg-form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.rg-register-form .rg-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rg-register-form .rg-form-group.full-width {
    width: 100%;
}

.rg-register-form label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.rg-register-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.rg-register-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.1);
}

.rg-register-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rg-register-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ✅ WOOCOMMERCE LOGIN FORM STYLING */
.rg-login-form .woocommerce-form-login {
    text-align: left;
}

.rg-login-form .form-row {
    margin-bottom: 20px;
}

.rg-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.rg-login-form input[type="text"],
.rg-login-form input[type="password"],
.rg-login-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.rg-login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.1);
}

.rg-login-form .woocommerce-form-login__submit {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.rg-login-form .woocommerce-form-login__submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.rg-login-links {
    text-align: center;
    margin-top: 20px;
}

.rg-login-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.rg-login-links a:hover {
    text-decoration: underline;
}

/* ✅ RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .rg-login-tabs {
        margin: 0 15px;
    }

    .rg-tab-content {
        padding: 30px 25px;
    }

    .rg-tab-header {
        padding: 15px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .rg-tab-content {
        padding: 25px 20px;
    }

    .rg-register-form h2,
    .rg-login-form h2 {
        font-size: 1.5rem;
    }
}

/* ✅ Add this to your client-portal.css */
.rg-extension-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0ea5a4;
    margin: 15px 0;
}

.rg-summary-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rg-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.rg-total-price {
    border-top: 2px solid #0ea5a4;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.1em;
    color: #0ea5a4;
}

.rg-requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.rg-requests-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.woocommerce-page form .form-row-first{width: 100% !important ;}
.woocommerce-page form .form-row-last{width: 100% !important ;}
