body {
  margin-top: 0;
  padding-top: 0;
}

td {
    white-space: nowrap;
   
  }
a:hover {
            color: #FF0000;
         }



.dropdown-menu {
    text-align: center;
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    display: inline-block;
}

.dropdown-menu ul li {
    display: inline-block;
    margin-right: 20px;
    position: relative;
}

.dropdown-menu ul li a {
    text-decoration: none;
}

.dropdown-menu .sub-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    left: 0;
    top: 100%;
    white-space: nowrap; /* Prevent content from wrapping */
}

.dropdown-menu .sub-menu li {
    display: block;
    margin: 5px 0;
}

.dropdown-menu li.dropdown:hover .sub-menu {
    display: block;
}
.menu-link + .sub-menu {
    display: none;
}

.menu-link.active + .sub-menu {
    display: block;
}

        .member-dashboard {
            max-width: 700px;
            margin: 1rem auto;
            padding: 0 0.5rem;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        .dashboard-header {
            text-align: center;
            margin-bottom: 1.5rem;
        }

        .dashboard-header h2 {
            color: #1a1a1a;
            font-size: 1.8rem;
            font-weight: 600;
            margin: 0 0 0.25rem 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .dashboard-header p {
            color: #666;
            font-size: 0.9rem;
            margin: 0;
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        @media (max-width: 768px) {
            .dashboard-grid {
                grid-template-columns: 1fr;
                gap: 0.75rem;
            }
        }

        .dashboard-card {
            background: #fff;
            border-radius: 8px;
            padding: 1.25rem;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            border: 1px solid #e5e7eb;
            transition: all 0.2s ease;
        }

        .dashboard-card:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
        }

        .card-header {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid #f3f4f6;
        }

        .card-icon {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 0.75rem;
            font-size: 1rem;
        }

        .card-icon.profile {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .card-icon.subscription {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
        }

        .card-icon.security {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
        }

        .card-title {
            font-size: 1rem;
            font-weight: 600;
            color: #1f2937;
            margin: 0;
        }

        .user-info-grid {
            display: grid;
            gap: 0.5rem;
        }

        .info-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem;
            background: #f9fafb;
            border-radius: 6px;
            border-left: 3px solid #667eea;
        }

        .info-label {
            font-weight: 500;
            color: #374151;
            font-size: 0.875rem;
        }

        .info-value {
            color: #6b7280;
            font-weight: 500;
            font-size: 0.875rem;
        }

        .subscription-status {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.025em;
        }

        .status-active {
            background: #d1fae5;
            color: #065f46;
        }

        .status-expired {
            background: #fecaca;
            color: #991b1b;
        }

        .status-pending {
            background: #fef3c7;
            color: #92400e;
        }

        .subscription-details {
            margin-top: 0.75rem;
        }

        .subscription-alert {
            margin-top: 0.75rem;
            padding: 0.75rem;
            border-radius: 6px;
            font-weight: 500;
            font-size: 0.875rem;
        }

        .alert-warning {
            background: #fef3c7;
            color: #92400e;
            border: 1px solid #f59e0b;
        }

        .alert-danger {
            background: #fecaca;
            color: #991b1b;
            border: 1px solid #ef4444;
        }

        .alert-success {
            background: #d1fae5;
            color: #065f46;
            border: 1px solid #10b981;
        }

        .form-section {
            grid-column: 1 / -1;
        }

        .dashboard-form {
            display: grid;
            gap: 1rem;
        }

        .form-group {
            display: grid;
            gap: 0.375rem;
        }

        .form-label {
            font-weight: 600;
            color: #374151;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.025em;
        }

        .form-input {
            padding: 0.625rem 0.75rem;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            font-size: 0.875rem;
            transition: all 0.2s ease;
            background: #fff;
        }

        .form-input:focus {
            border-color: #667eea;
            outline: none;
            box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
        }

        .form-button {
            padding: 0.625rem 1.25rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 0.875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.025em;
            justify-self: start;
        }

        .form-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        }

        .form-button:active {
            transform: translateY(0);
        }

        .logout-section {
            grid-column: 1 / -1;
            text-align: center;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid #f3f4f6;
        }

        .logout-btn {
            display: inline-block;
            padding: 0.625rem 1.25rem;
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: white;
            border-radius: 6px;
            text-decoration: none;
            transition: all 0.2s ease;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.025em;
            font-size: 0.875rem;
        }

        .logout-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
            color: white;
            text-decoration: none;
        }

        .alert {
            padding: 0.75rem;
            border-radius: 6px;
            margin-bottom: 1.5rem;
            text-align: center;
            font-weight: 500;
            font-size: 0.875rem;
        }

        .alert-success {
            background-color: #d1fae5;
            color: #065f46;
            border: 1px solid #10b981;
        }

        .alert-danger {
            background-color: #fecaca;
            color: #991b1b;
            border: 1px solid #ef4444;
        }

        .days-remaining {
            font-size: 1.1rem;
            font-weight: 700;
            margin: 0.25rem 0;
        }

        .days-remaining.warning {
            color: #f59e0b;
        }

        .days-remaining.danger {
            color: #ef4444;
        }

        .days-remaining.success {
            color: #10b981;
        }

        .form-helper {
            font-size: 0.7rem;
            color: #6b7280;
            margin-top: 0.125rem;
        }
		.ajax-notice {
			padding: 15px;
			margin-bottom: 20px;
			border-radius: 4px;
			color: white;
			text-align: center;
			position: fixed;
			top: 20px;
			left: 50%;
			transform: translateX(-50%);
			z-index: 1000;
			box-shadow: 0 4px 12px rgba(0,0,0,0.15);
			max-width: 80%;
			opacity: 0;
			transition: opacity 0.3s ease;
		}

		.ajax-notice.success {
			background-color: #4CAF50;
		}

		.ajax-notice.error {
			background-color: #F44336;
		}

		.ajax-notice.show {
			opacity: 1;
		}

/* Google Sign-In Button Styling */
/* Social login section */
.social-login-section {
    margin: 25px auto;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

/* Google button containers - important to override any Google inline styles */
#google-register-button, 
#google-login-button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-width: 200px;
    max-width: 300px;
    margin: 0 auto;
    height: 44px;
}

/* Directly target the Google iframe */
#google-register-button iframe,
#google-login-button iframe {
    width: 100% !important;
    min-width: 200px !important;
    margin: 0 auto !important;
}

/* Divider styling */
.social-login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #666;
    font-size: 14px;
}

.social-login-divider::before,
.social-login-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
    margin: 0 10px;
}


/* Mobile Styles (Applies to both forms) */
@media (max-width: 600px) {
    .custom-login-container,
    .custom-register-container {
/*         max-width: 100%; */
        margin: 1rem auto;
        padding: 1.25rem;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .custom-login-container h2,
    .custom-register-container h2 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .login-message,
    .custom-register-container p.message {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .auth-submit-btn,
    #register-submit {
        padding: 0.75rem;
        font-size: 1rem;
    }
}
@media (max-width: 600px) {
    .password-toggle-icon {
        right: 10px;
        font-size: 16px;
    }
    
    .password-toggle input {
/*         padding-right: 35px; */
    }
}
/* Mobile-Specific Login Container Adjustments */
@media (max-width: 480px) {
    .custom-login-container {
        width: 90%; /* More narrow container */
        margin: 1rem auto;
        padding: 1.25rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Lighter shadow */
    }

    /* Better form element sizing */
    .custom-login-form .form-group {
        margin-bottom: 0.8rem;
    }

    /* More compact inputs */
    .custom-login-form input {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    /* Adjust the password toggle position */
    .password-toggle-icon {
        right: 8px;
        transform: scale(0.9);
    }

    /* Better button sizing */
    .auth-submit-btn {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    /* Tighter alert spacing */
    .login-alert {
        padding: 0.6rem;
        margin-bottom: 0.8rem;
    }
}
/* Optional: Portrait orientation tweaks */
/* @media (max-width: 480px) and (orientation: portrait) {
    .custom-login-container {
/*         width: 88%; */
/*         margin: 0.8rem auto; */
/*     } */
/* } */ 

/* Desktop - Password Input Fields */
@media (min-width: 768px) {
    /* Password input container */
    .password-toggle {
        position: relative;
        width: 100%; /* Full width */
    }

    /* Password input fields */
    #login-password,
    #reg-password,
    #reg-password-confirm {
        width: 90%; 
/*         min-width: 300px; */
        padding: 12px 45px 12px 15px; /* Ample padding */
    }

    /* Password toggle icon positioning */
/*     .password-toggle-icon {
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    } */
}
