
:root {
	--primary-color: #cdad59;
    --background-color: #130824;
    --card-background: #fff2f2;
    --border-default: #e5e7eb;
    --burgundy: #4b1221;
    --gold: #cdad59;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --border-radius: 12px;
    --shadow-light: 0 4px 20px rgba(205, 173, 89, 0.08);
    --shadow-hover: 0 8px 30px rgba(205, 173, 89, 0.15);	
}


/* --- Main Login Container --- */
.b2b-login-wrapper {
    position: relative;
    max-width: 420px;
    margin: 40px auto 0;
    padding: 2rem; /* Use rem for scalable spacing */
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: left; /* Align form content to the left */
}

/* --- Hide the form by default --- */
#b2b-login-section {
    display: none;
}

/* --- Form Heading --- */
#b2b-login-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center; /* Center the "Member Login" title */
    font-size: 1.75rem;
}

/* --- General Form Spacing --- */
#b2b_login_form p {
    margin-bottom: 1.25rem;
}

/* --- Input Field Labels --- */
#b2b_login_form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* --- Input Fields (Username & Password) --- */
#b2b_login_form input[type="text"],
#b2b_login_form input[type="password"] {
    display: block;
    width: 100%; /* CRITICAL: Makes inputs full-width */
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #2d3748;
    background-color: #f7fafc;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* --- Input Field Focus Style --- */
#b2b_login_form input[type="text"]:focus,
#b2b_login_form input[type="password"]:focus {
    outline: none;
    border-color: #4299e1; /* Example primary color */
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
    background-color: #ffffff;
}

/* --- 'Remember Me' Checkbox --- */
#b2b_login_form .login-remember {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

#b2b_login_form .login-remember label {
    margin: 0;
    font-weight: normal;
    color: #4a5568;
}

#b2b_login_form .login-remember input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* --- The 'Access B2B Portal' Button --- */
#b2b_login_form .login-submit input[type="submit"] {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #2d3748; /* Dark, professional color */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#b2b_login_form .login-submit input[type="submit"]:hover {
    background-color: #1a202c; /* Slightly darker on hover */
}

/* --- Lost Password & Close Button --- */
.b2b-lost-password-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #4299e1;
    text-decoration: none;
}

.b2b-lost-password-link:hover {
    text-decoration: underline;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #a0aec0;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: #4a5568;
}


/* Global Reset and Layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif; /* Placeholder font */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utility Classes */
.flex-center {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.main-layout {
    min-height: 100vh;
    padding: 40px 20px;
    background-color: var(--background-color);
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.padding-content {
    padding: 16px 24px;
}

.container.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Typography and Colors */
.gold { 
    color: var(--gold); 
}

.card-title{
	color: var(--gold); 
}

.dark-invert {
    /* Used for logo/icon when screen might be in dark mode (though we don't fully define dark mode here) */
    filter: none; 
}

.icon-large {
    width: 80px; 
    height: 80px; 
    margin: 0 auto;
}

.icon-medium {
    width: 48px; 
    height: 48px; 
    margin: 0 auto;
}

.title-main {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 32px;
}

.text-slogan {
    font-size: 1.5rem;
    font-weight: 500;
}

.text-description {
    font-size: 1.125rem;
    margin-top: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-large {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 16px;
}

.text-base {
    font-size: 1rem;
	color:black;
}

.logo-section #home-logo {
    width: 250px;
}

/* Layout Specifics */
.logo-section {
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
	display: flex;
    align-items: center;

}

.grid-container {
    margin-top: 48px;
    display: grid;
    gap: 106px;
}

.two-cols {
    grid-template-columns: 1fr; /* Default mobile layout */
}


@media (min-width: 768px) {
    .two-cols {
        grid-template-columns: repeat(2, 1fr); /* Desktop layout */
    }
    .title-main {
        font-size: 3rem;
    }
}

/* Card Styling */
.card {
    background-color: var(--card-background);
    border: 2px solid var(--border-default);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    text-align: center;
    padding: 24px;
    transition: all 0.3s ease;
}

.card-hover:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 0;
}

.card-content {
    padding-top: 0;
    width: 100%;
}

/* Button Styling */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    margin-top: 24px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.button-primary {
    background-color: var(--gold);
    color: white;
}

.button-primary:hover {
    background-color: #6e001a;
}

.button-secondary {
    background-color: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.button-secondary:hover {
    background-color: var(--gold);
    color: white;
}


* Parent container - user's existing styles */
.appointments-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    color: white;
}

.appointments-container h2 {
    text-align: center;
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.manager-subtitle {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    opacity: 0.9;
}

small {
    color: black;
    width: 100%;
    display: inline-block;
    padding: 3px;
    font-size: 1em;
}

/* Table wrapper - centered within container */
.appointments-table-wrapper {
    width: 100%;
    margin: 0 auto;
    overflow-x: auto;
}

/* Main table - proper alignment */
.appointments-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

/* Header row - sticky burgundy gradient */
.appointments-table thead tr {
    background: linear-gradient(135deg, var(--burgundy) 0%, #5d1829 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.appointments-table th {
    padding: 20px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.5px;
	text-align: center;
    text-transform: uppercase;
    color: white;
    border: none;
    white-space: nowrap;
}

.appointments-table th:first-child {
    padding-left: 24px;
    border-radius: 12px 0 0 0;
}

.appointments-table th:last-child {
    padding-right: 24px;
    border-radius: 0 12px 0 0;
}

/* Body rows - card style with spacing */
.appointments-table tbody tr {
    background: var(--card-background);
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Space between rows */
.appointments-table tbody tr td {
    border-top: 16px solid transparent;
    border-bottom: 0;
    background-clip: padding-box;
}

/* Remove top border for better card effect */
.appointments-table tbody tr:first-child td {
    border-top: 16px solid transparent;
}



.appointments-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.appointments-table tbody tr:hover::before {
    opacity: 1;
}

/* Cell styling - proper alignment */
.appointments-table td {
    padding: 24px 16px;
    vertical-align: middle;
    background: var(--card-background);
    border-left: none;
    border-right: none;
    position: relative;
}

.appointments-table tbody tr td:first-child {
    padding-left: 28px;
    border-radius: 12px 0 0 12px;
}

.appointments-table tbody tr td:last-child {
    padding-right: 24px;
    border-radius: 0 12px 12px 0;
}

/* Date column - Burgundy emphasis */
.appointments-table td[data-label="Date"],
.appointments-table td:nth-child(1) {
    font-weight: 600;
    color: var(--burgundy);
    font-size: 1.05em;
    min-width: 140px;
}

/* Time column */
.appointments-table td[data-label="Time"],
.appointments-table td:nth-child(2) {
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
    min-width: 120px;
}

/* Buyer and Exhibitor styling */
.appointments-table td[data-label="Buyer"] strong,
.appointments-table td[data-label="Exhibitor"] strong,
.appointments-table td:nth-child(3) strong,
.appointments-table td:nth-child(4) strong {
    display: block;
    color: var(--text-dark);
    font-size: 1.05em;
    margin-bottom: 4px;
}

.email-small {
    color: var(--text-muted);
    font-size: 0.9em;
    font-style: italic;
}

/* Location */
.appointments-table td[data-label="Location"],
.appointments-table td:nth-child(5) {
    color: var(--text-dark);
    font-weight: 500;
}

/* Notes cell */
.notes-cell,
.appointments-table td:nth-child(6) {
    max-width: 250px;
}

.notes-cell em.no-notes {
    color: var(--text-muted);
    font-size: 0.9em;
}

/* Elegant status dropdown */
.status-dropdown {
    padding: 10px 16px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--burgundy) 0%, #5d1829 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
	text-align:center;
    letter-spacing: 0.5px;
    outline: none;
    appearance: none;
    padding-right: 36px;
    background-image: 
        linear-gradient(135deg, var(--burgundy) 0%, #5d1829 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right 12px center;
    min-width: 140px;
}

.status-dropdown:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(75, 18, 33, 0.3);
}

.status-dropdown:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(205, 173, 89, 0.2);
}

.status-dropdown option {
    background: white;
    color: var(--text-dark);
    padding: 10px;
}

/* Status color variations */
.status-dropdown.status-scheduled {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    background-image: 
        linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right 12px center;
}

.status-dropdown.status-completed {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    background-image: 
        linear-gradient(135deg, #059669 0%, #047857 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right 12px center;
}

.status-dropdown.status-cancelled {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    background-image: 
        linear-gradient(135deg, #dc2626 0%, #b91c1c 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right 12px center;
}

.status-update-message {
    display: block;
    font-size: 0.85em;
    margin-top: 6px;
    color: var(--gold);
    font-weight: 500;
    min-height: 18px;
    transition: opacity 0.3s ease;
}

/* Empty buyer/exhibitor handling */
.appointments-table tbody tr td[data-label="Buyer"] strong:empty::after,
.appointments-table tbody tr td[data-label="Exhibitor"] strong:empty::after {
    content: 'Not assigned';
    color: var(--text-muted);
    font-weight: normal;
    font-style: italic;
}


/* Responsive - Desktop adjustments */
@media (max-width: 1200px) {
    .appointments-table th,
    .appointments-table td {
        padding: 18px 14px;
    }

    .appointments-table tbody tr td:first-child {
        padding-left: 20px;
    }

    .appointments-table tbody tr td:last-child {
        padding-right: 20px;
    }
}

/* Responsive - Mobile card layout */
@media (max-width: 968px) {
    .appointments-table thead {
        display: none;
    }

    .appointments-table,
    .appointments-table tbody,
    .appointments-table tr,
    .appointments-table td {
        display: block;
        width: 100%;
    }

    .appointments-table tbody tr {
        margin-bottom: 20px;
        border-radius: 12px;
        background: var(--card-background);
        box-shadow: var(--shadow-light);
    }



    .appointments-table td {
        padding: 16px 24px !important;
        border: none !important;
        border-radius: 0 !important;
        text-align: left;
        border-top: none !important;
    }
.status-dropdown
    .appointments-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: var(--burgundy);
        text-transform: uppercase;
        font-size: 0.85em;
        margin-bottom: 6px;
        letter-spacing: 0.5px;
    }

    .appointments-table td:first-child {
        padding-top: 24px !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .appointments-table td:last-child {
        padding-bottom: 24px !important;
        border-radius: 0 0 12px 12px !important;
    }

    .status-dropdown {
        width: 100%;
    }
}
