/* Agent Login Screen Styles */

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: #F5F5DC;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
}

.agent-login-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #F5F5DC;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* Header */
.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background: transparent;
    margin: 0;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.header-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
}

.header-email:hover {
    opacity: 0.7;
}

.header-email svg {
    width: 16px;
    height: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.globe-icon {
    color: #000;
    cursor: pointer;
}

.signup-link-header {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
}

.signup-link-header:hover {
    opacity: 0.7;
}

.request-demo-btn {
    background-color: #FF6B35;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.request-demo-btn:hover {
    background-color: #E55A2B;
}

/* Main Content */
.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
}

/* Background Illustrations */
.background-illustrations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.illustration-left {
    position: absolute;
    left: 5%;
    top: 20%;
    width: 200px;
    height: 200px;
}

.illustration-right {
    position: absolute;
    right: 5%;
    top: 15%;
    width: 200px;
    height: 300px;
}

.illustration,
.illustration-person {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

/* Login Card */
.login-card {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.login-card-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px 0;
    text-align: center;
}

.login-card-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 32px 0;
    line-height: 1.5;
    text-align: center;
}

.login-form {
    margin-bottom: 24px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    padding-right: 50px;
    border: 1.5px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #FF6B35;
}

.form-input:disabled {
    background-color: #F5F5F5;
    cursor: not-allowed;
}

.input-icon-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.input-link-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    padding: 0;
    text-decoration: none;
}

.input-link-btn:hover {
    color: #FF6B35;
}

.trouble-link {
    display: block;
    text-align: left;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.trouble-link:hover {
    color: #FF6B35;
}

.signin-btn {
    width: 100%;
    padding: 14px;
    background-color: #FF6B35;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 24px;
}

.signin-btn:hover:not(:disabled) {
    background-color: #E55A2B;
}

.signin-btn:disabled {
    background-color: #CCC;
    cursor: not-allowed;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #999;
    font-size: 14px;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E0E0E0;
}

.divider span {
    padding: 0 16px;
    background: white;
}

.social-login-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    background: white;
    border: 1.5px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.2s, background-color 0.2s;
    color: #333;
}

.social-btn:hover:not(:disabled) {
    border-color: #CCC;
    background-color: #FAFAFA;
}

.social-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* All social buttons should have white background and black icons */
.google-btn svg,
.apple-btn svg,
.facebook-btn svg {
    fill: #000;
}

.facebook-btn {
    color: #333;
    background: white;
    border-color: #E0E0E0;
}

.facebook-btn:hover:not(:disabled) {
    border-color: #CCC;
    background-color: #FAFAFA;
}

.request-account-link {
    display: block;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.request-now-bold {
    font-weight: 700;
    color: #000;
}

.request-account-link:hover {
    color: #FF6B35;
}

.error-message {
    color: #D32F2F;
    background-color: #FFEBEE;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid #FFCDD2;
}

/* Footer */
.login-footer {
    text-align: center;
    padding: 24px;
    color: #666;
    font-size: 12px;
    margin: 0;
    width: 100%;
}

.login-footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-header {
        padding: 16px 20px;
        flex-wrap: wrap;
    }
    
    .header-left {
        gap: 16px;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    .header-email {
        font-size: 12px;
    }
    
    .header-right {
        gap: 16px;
    }
    
    .request-demo-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .login-card {
        padding: 32px 24px;
        margin: 0;
    }
    
    .login-main {
        padding: 40px 20px;
    }
    
    .login-card-title {
        font-size: 24px;
    }
    
    .social-login-buttons {
        flex-direction: column;
    }
    
    .illustration-left,
    .illustration-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px 20px;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .login-card {
        padding: 24px 20px;
        margin: 0;
    }
    
    .login-card-title {
        font-size: 20px;
    }
    
    .login-main {
        padding: 20px;
    }
}

/* Dashboard Screen Styles */
.dashboard-container {
    min-height: 100vh;
    width: 100%;
    background-color: #F5F5DC;
    padding: 20px 80px 0 20px; /* Top, right (for menu button), bottom, left */
    margin: 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-x: visible; /* Allow menu button to be visible */
    box-sizing: border-box;
}

.dashboard-content-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    max-width: 100%;
    width: fit-content;
    overflow: visible; /* Allow menu button to extend outside */
}

/* Hamburger Menu */
.hamburger-menu-container {
    position: absolute;
    top: 0;
    right: -58px; /* 48px button width + 10px margin */
    z-index: 100;
    display: flex;
    align-items: flex-start;
    pointer-events: auto; /* Ensure button is clickable */
    visibility: visible; /* Ensure button is visible */
    opacity: 1; /* Ensure button is not transparent */
}

.hamburger-menu-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: white;
    border: 1.5px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hamburger-menu-btn:hover {
    border-color: #CCC;
    background-color: #FAFAFA;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hamburger-menu-btn svg {
    width: 24px;
    height: 24px;
}

.hamburger-menu-dropdown {
    position: absolute;
    top: 56px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    overflow: hidden;
    border: 1px solid #E0E0E0;
    z-index: 1000;
}

.menu-item {
    width: 100%;
    padding: 14px 20px;
    background: white;
    border: none;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Poppins', sans-serif;
}

.menu-item:hover {
    background-color: #F5F5F5;
}

.menu-item:first-child {
    border-bottom: 1px solid #E0E0E0;
}

.menu-section {
    padding: 8px 0;
}

.menu-section-title {
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.menu-separator {
    height: 1px;
    background-color: #E0E0E0;
    margin: 4px 0;
}

.menu-item-active {
    background-color: #F0F0F0 !important;
    font-weight: 600 !important;
    color: #000 !important;
}

.menu-item-active:hover {
    background-color: #E8E8E8 !important;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 0;
    position: relative;
    overflow: visible; /* Allow menu button to be visible outside */
}

.user-profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid #F5F5DC;
}

.user-name {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
}

.user-bio {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    max-width: 400px;
}

.dashboard-separator {
    height: 1px;
    background-color: #E0E0E0;
    margin: 32px 0;
    width: 100%;
}

.setup-item {
    cursor: pointer;
    transition: opacity 0.2s, background-color 0.2s;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.setup-item:hover {
    opacity: 0.7;
    background-color: #F9F9F9;
}

.setup-item-connected {
    background-color: #F0F8F0;
    border: 1px solid #E0F0E0;
}

.setup-item-connected:hover {
    background-color: #E8F5E8;
}

.setup-item-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.setup-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.setup-icon svg {
    width: 24px;
    height: 24px;
}

.setup-content {
    flex: 1;
}

.setup-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
}

.setup-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Locations Section - inside Square Connected card */
/* Locations Section - outside Square Connected card */
.locations-section-outer {
    margin-top: 32px;
    width: 100%;
}

.locations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.locations-title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin: 0 0 16px 0;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.locations-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 100px;
}

/* Apple-style loading spinner */
.apple-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #E0E0E0;
    border-top-color: #000;
    border-radius: 50%;
    animation: apple-spin 0.8s linear infinite;
}

@keyframes apple-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.locations-error {
    padding: 12px 16px;
    background-color: #FFEBEE;
    border: 1px solid #FFCDD2;
    border-radius: 8px;
    color: #C62828;
    font-size: 14px;
    margin-bottom: 16px;
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-item {
    padding: 12px;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    transition: all 0.2s;
}

.location-item:hover {
    background-color: #FAFAFA;
    border-color: #D0D0D0;
}

.location-name {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.location-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.5;
}

.location-timezone {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.location-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-status-active {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.location-status-inactive {
    background-color: #FFF3E0;
    color: #F57C00;
}

.locations-empty {
    padding: 24px;
    text-align: center;
    color: #999;
    font-size: 14px;
    font-style: italic;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 20px;
    }
    
    .dashboard-content-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .hamburger-menu-container {
        right: 10px; /* Position inside card on smaller screens */
        top: 10px;
    }
    
    .hamburger-menu-btn {
        width: 44px;
        height: 44px;
    }
    
    .dashboard-card {
        padding: 32px 24px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    
    .user-avatar {
        width: 100px;
        height: 100px;
    }
    
    .user-name {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 15px 10px;
    }
    
    .dashboard-content-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .hamburger-menu-container {
        right: 10px; /* Position inside card on mobile */
        top: 10px;
    }
    
    .hamburger-menu-btn {
        width: 40px;
        height: 40px;
    }
    
    .hamburger-menu-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .hamburger-menu-dropdown {
        top: 48px;
        right: 0;
        min-width: 140px;
    }
    
    .menu-item {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .dashboard-card {
        padding: 24px 20px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    
    .user-avatar {
        width: 80px;
        height: 80px;
    }
    
    .user-name {
        font-size: 18px;
    }
    
    .setup-item-header {
        gap: 12px;
    }
}

/* Square Settings Screen Styles */
/* Back button uses hamburger menu styles, no separate styling needed */

.square-settings-back-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.square-settings-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
    font-family: 'Poppins', sans-serif;
}

.square-settings-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 32px 0;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.square-settings-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.square-settings-error {
    padding: 16px;
    background-color: #FFEBEE;
    border: 1px solid #FFCDD2;
    border-radius: 8px;
    color: #C62828;
    margin-bottom: 24px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.square-settings-success {
    padding: 16px;
    background-color: #E8F5E9;
    border: 1px solid #C8E6C9;
    border-radius: 8px;
    color: #2E7D32;
    margin-bottom: 24px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.square-settings-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.square-settings-card {
    background: #FAFAFA;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 24px;
}

.square-settings-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.square-settings-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.square-settings-card-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px 0;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.square-settings-deauthorize-btn {
    background-color: #FFEBEE;
    border: 1px solid #FFCDD2;
    color: #C62828;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.square-settings-deauthorize-btn:hover:not(:disabled) {
    background-color: #FFCDD2;
    border-color: #EF9A9A;
}

.square-settings-deauthorize-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.square-settings-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.square-settings-action-btn {
    background-color: #FFEBEE;
    border: 1px solid #FFCDD2;
    color: #C62828;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.square-settings-action-btn:hover:not(:disabled) {
    background-color: #FFCDD2;
    border-color: #EF9A9A;
}

.square-settings-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.square-settings-token-status {
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    margin-top: 16px;
    transition: all 0.2s;
}

.square-settings-token-status-valid {
    background-color: #FFFFFF;
    color: #000000;
    border: 1px solid #E0E0E0;
}

.square-settings-token-status-invalid {
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.square-settings-token-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.square-settings-token-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.square-settings-token-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.square-settings-token-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.4;
    flex: 1;
    width: 100%;
}

.square-settings-token-text span {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    display: block;
    width: 100%;
}

/* Responsive adjustments for Square Settings */
@media (max-width: 768px) {
    .square-settings-back-btn {
        top: 32px;
        left: 24px;
    }
    
    .square-settings-title {
        font-size: 20px;
    }
    
    .square-settings-card {
        padding: 20px;
    }
    
    .square-settings-card-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .square-settings-deauthorize-btn,
    .square-settings-action-btn {
        width: 100%;
    }
    
    .square-settings-card-actions {
        flex-direction: column;
    }
}
