/* Account Page Styles - Add these to your styles.css file */
#accountButton {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* order: 9; Position it before logout button */
}

.account-full-content {
    display: none;
    flex: 1;
    background-color: #14161C;
    color: #F4F4F4;
    overflow-y: auto;
    padding: 0;
}

.account-full-content.active {
    display: flex;
    flex-direction: column;
}

.account-header {
    background: linear-gradient(135deg, #23252C 0%, #2a2d35 100%);
    padding: 30px;
    border-bottom: 1px solid rgba(114, 216, 239, 0.2);
}

.account-title {
    font-size: 28px;
    font-weight: 600;
    color: #72D8EF;
    margin: 0 0 10px 0;
}

.account-subtitle {
    font-size: 16px;
    color: #888;
    margin: 0;
}

.account-container {
    flex: 1;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.account-card {
    background: linear-gradient(135deg, #23252C 0%, #2a2d35 100%);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(114, 216, 239, 0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(244, 244, 244, 0.1);
}

.card-icon {
    font-size: 24px;
    color: #72D8EF;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #72D8EF;
    margin: 0;
}

/* User Info Styles */
.user-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.avatar-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #72D8EF 0%, #5ab0bf 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #14161C;
    font-weight: bold;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 24px;
    font-weight: 600;
    color: #F4F4F4;
    margin: 0 0 5px 0;
}

.user-email {
    font-size: 16px;
    color: #888;
    margin: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(244, 244, 244, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #ccc;
}

.info-value {
    color: #F4F4F4;
    font-weight: 600;
}

.edit-profile-btn {
    background: linear-gradient(135deg, #72D8EF 0%, #5ab0bf 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: #14161C;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.edit-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 216, 239, 0.4);
}

/* Credit Balance Styles */
.credit-balance-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.balance-overview {
    background: rgba(114, 216, 239, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.balance-amount {
    font-size: 36px;
    font-weight: bold;
    color: #72D8EF;
    margin: 0;
}

.balance-label {
    font-size: 14px;
    color: #888;
    margin: 5px 0 0 0;
}

.usage-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.usage-item {
    background: rgba(20, 22, 28, 0.5);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.usage-number {
    font-size: 20px;
    font-weight: bold;
    color: #72D8EF;
    margin: 0;
}

.usage-text {
    font-size: 12px;
    color: #888;
    margin: 5px 0 0 0;
}

.usage-bar {
    background: rgba(20, 22, 28, 0.8);
    border-radius: 10px;
    height: 8px;
    margin: 15px 0;
    overflow: hidden;
}

.usage-fill {
    background: linear-gradient(90deg, #72D8EF 0%, #5ab0bf 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.add-credits-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.add-credits-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* App Connections Full Width */
.app-connections-card {
    grid-column: 1 / -1;
}

.connections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.connection-item {
    background: rgba(20, 22, 28, 0.5);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(244, 244, 244, 0.1);
    transition: all 0.3s ease;
}

.connection-item:hover {
    border-color: #72D8EF;
    transform: translateY(-2px);
}

.connection-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.connection-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.gmail-icon {
    background: #EA4335;
    color: white;
}

.drive-icon {
    background: #34A853;
    color: white;
}

.connection-info {
    flex: 1;
}

.connection-name {
    font-size: 18px;
    font-weight: 600;
    color: #F4F4F4;
    margin: 0 0 5px 0;
}

.connection-description {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-connected {
    background: #4CAF50;
}

.status-disconnected {
    background: #f44336;
}

.status-text {
    font-size: 14px;
    font-weight: 500;
}

.status-connected-text {
    color: #4CAF50;
}

.status-disconnected-text {
    color: #f44336;
}

.connection-actions {
    display: flex;
    gap: 10px;
}

.connect-btn {
    background: linear-gradient(135deg, #72D8EF 0%, #5ab0bf 100%);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    color: #14161C;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.connect-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(114, 216, 239, 0.4);
}

.disconnect-btn {
    background: #f44336;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.disconnect-btn:hover {
    background: #d32f2f;
    transform: translateY(-1px);
}

/* Settings Section */
.settings-section {
    margin-top: 30px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(244, 244, 244, 0.1);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
}

.setting-title {
    font-weight: 600;
    color: #F4F4F4;
    margin: 0 0 5px 0;
}

.setting-description {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #444;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: #72D8EF;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.toggle-switch.active::after {
    transform: translateX(26px);
}


/* OAuth Notifications */
.oauth-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    background: #72D8EF;
    color: #14161C;
    font-weight: 600;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.oauth-notification.success {
    background: #4CAF50;
    color: white;
}

.oauth-notification.error {
    background: #f44336;
    color: white;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design for Account Page */
@media (max-width: 768px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
    
    .usage-stats {
        grid-template-columns: 1fr;
    }
    
    .connections-grid {
        grid-template-columns: 1fr;
    }
    
    .account-container {
        padding: 20px;
    }
    
    .account-header {
        padding: 20px;
    }
    
    .account-title {
        font-size: 24px;
    }
    
    .user-avatar {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .connection-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .connection-actions {
        flex-direction: column;
    }
}