/* Developer Panel Styles */
.dev-panel-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    z-index: 99999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dev-panel-toggle:hover {
    background: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.dev-panel {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 380px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    z-index: 99998;
    display: none;
    overflow: hidden;
    font-family: 'Nunito', sans-serif;
}

.dev-panel.open {
    display: flex;
    flex-direction: column;
}

.dev-panel-header {
    background: var(--navy);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 16px;
}

.dev-panel-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.dev-panel-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dev-panel-tabs {
    display: flex;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.dev-panel-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 16px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.dev-panel-tab:hover {
    background: var(--gray-50);
}

.dev-panel-tab.active {
    background: white;
    border-bottom-color: var(--blue);
    color: var(--blue);
}

.dev-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.dev-panel-tab-content {
    display: none;
}

.dev-panel-tab-content.active {
    display: block;
}

/* PIN Modal */
.dev-pin-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.dev-pin-modal-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    width: 320px;
    text-align: center;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.dev-pin-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
}

.dev-pin-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.dev-pin-input:focus {
    outline: none;
    border-color: var(--blue);
}

.dev-pin-actions {
    display: flex;
    gap: 12px;
}

.dev-pin-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dev-pin-confirm {
    background: var(--blue);
    color: white;
}

.dev-pin-confirm:hover {
    background: var(--navy);
}

.dev-pin-cancel {
    background: var(--gray-100);
    color: var(--gray-600);
}

.dev-pin-cancel:hover {
    background: var(--gray-200);
}

/* Test Users Tab */
.test-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.test-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.test-user-item:hover {
    background: var(--gray-100);
}

.test-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.test-user-info {
    flex: 1;
}

.test-user-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 14px;
    margin-bottom: 2px;
}

.test-user-email {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.test-user-role {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.test-user-view-btn {
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.test-user-view-btn:hover {
    background: var(--navy);
}

/* Data Inspector Tab */
.data-section {
    margin-bottom: 20px;
}

.data-block {
    margin-bottom: 12px;
}

.data-block-header {
    background: var(--gray-100);
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: between;
    font-weight: 600;
    font-size: 14px;
    color: var(--navy);
    transition: background 0.2s ease;
}

.data-block-header:hover {
    background: var(--gray-200);
}

.data-block-arrow {
    margin-right: 8px;
    transition: transform 0.2s ease;
}

.data-block-header.expanded .data-block-arrow {
    transform: rotate(90deg);
}

.data-block-content {
    display: none;
    background: #f8f9fa;
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--gray-800);
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

.data-block-content.expanded {
    display: block;
}

/* Overrides Tab */
.overrides-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.override-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.override-btn.primary {
    background: var(--blue);
    color: white;
}

.override-btn.primary:hover {
    background: var(--navy);
}

.override-btn.success {
    background: var(--teal);
    color: white;
}

.override-btn.success:hover {
    background: #0f766e;
}

.override-btn.warning {
    background: var(--orange);
    color: white;
}

.override-btn.warning:hover {
    background: #ea580c;
}

.override-btn.danger {
    background: #dc2626;
    color: white;
}

.override-btn.danger:hover {
    background: #b91c1c;
}

.override-feedback {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: none;
}

.override-feedback.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.override-feedback.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Dev Mode Banner */
.dev-mode-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--orange);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    z-index: 99997;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dev-mode-exit {
    background: white;
    color: var(--orange);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dev-mode-exit:hover {
    background: var(--gray-100);
}

/* Loading states */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--gray-600);
    font-weight: 600;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-600);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state-text {
    font-weight: 600;
    margin-bottom: 4px;
}

.empty-state-sub {
    font-size: 14px;
    opacity: 0.7;
}
