/**
 * RealPrice Developer Portal - Frontend Styles
 * Version: 1.0.0
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --rpc-primary: #2563eb;
    --rpc-primary-hover: #1d4ed8;
    --rpc-primary-light: #dbeafe;
    --rpc-secondary: #64748b;
    --rpc-success: #22c55e;
    --rpc-success-light: #dcfce7;
    --rpc-warning: #f59e0b;
    --rpc-warning-light: #fef3c7;
    --rpc-danger: #ef4444;
    --rpc-danger-light: #fee2e2;
    --rpc-info: #3b82f6;
    --rpc-info-light: #dbeafe;
    --rpc-dark: #1e293b;
    --rpc-gray: #64748b;
    --rpc-gray-light: #f1f5f9;
    --rpc-border: #e2e8f0;
    --rpc-white: #ffffff;
    --rpc-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --rpc-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --rpc-radius: 8px;
    --rpc-radius-lg: 12px;
    --rpc-transition: all 0.2s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
.rpc-dashboard-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--rpc-dark);
    background: var(--rpc-gray-light);
    min-height: 100vh;
}

.rpc-dashboard-wrapper * {
    box-sizing: border-box;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.rpc-dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Mobile Menu Toggle - domyślnie ukryty na dużych ekranach */
.rpc-mobile-menu-toggle {
    display: none;
    margin-bottom: 20px;
}

.rpc-sidebar {
    width: 260px;
    background: var(--rpc-white);
    border-right: 1px solid var(--rpc-border);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.rpc-main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.rpc-sidebar-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--rpc-border);
    margin-bottom: 20px;
}

.rpc-sidebar-logo h2 {
    margin: 0;
    font-size: 18px;
    color: var(--rpc-primary);
}

.rpc-sidebar-logo span {
    font-size: 12px;
    color: var(--rpc-gray);
}

.rpc-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rpc-nav-menu li {
    margin: 0;
}

.rpc-nav-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--rpc-dark);
    text-decoration: none;
    transition: var(--rpc-transition);
    border-left: 3px solid transparent;
}

.rpc-nav-menu a:hover,
.rpc-nav-menu a.active {
    background: var(--rpc-primary-light);
    color: var(--rpc-primary);
    border-left-color: var(--rpc-primary);
}

.rpc-nav-menu a i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

.rpc-nav-menu .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--rpc-gray-light);
}

.rpc-nav-menu .submenu a {
    padding-left: 52px;
    font-size: 13px;
}

.rpc-user-info {
    padding: 20px;
    border-top: 1px solid var(--rpc-border);
    margin-top: auto;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--rpc-white);
}

.rpc-user-info .user-name {
    font-weight: 600;
    display: block;
}

.rpc-user-info .user-company {
    font-size: 12px;
    color: var(--rpc-gray);
}

.rpc-user-info .logout-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--rpc-danger);
    text-decoration: none;
    font-size: 13px;
}

/* ==========================================================================
   Header & Breadcrumbs
   ========================================================================== */
.rpc-page-header {
    margin-bottom: 30px;
}

.rpc-breadcrumbs {
    margin-bottom: 10px;
    font-size: 13px;
}

.rpc-breadcrumbs a {
    color: var(--rpc-gray);
    text-decoration: none;
}

.rpc-breadcrumbs a:hover {
    color: var(--rpc-primary);
}

.rpc-breadcrumbs span {
    color: var(--rpc-gray);
    margin: 0 8px;
}

.rpc-page-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--rpc-dark);
}

.rpc-page-subtitle {
    color: var(--rpc-gray);
    margin: 0;
}

/* ==========================================================================
   Stats Cards
   ========================================================================== */
.rpc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rpc-stat-card {
    background: var(--rpc-white);
    border-radius: var(--rpc-radius-lg);
    padding: 24px;
    box-shadow: var(--rpc-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}

.rpc-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--rpc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.rpc-stat-icon.blue { background: var(--rpc-primary-light); color: var(--rpc-primary); }
.rpc-stat-icon.green { background: var(--rpc-success-light); color: var(--rpc-success); }
.rpc-stat-icon.yellow { background: var(--rpc-warning-light); color: var(--rpc-warning); }
.rpc-stat-icon.red { background: var(--rpc-danger-light); color: var(--rpc-danger); }

.rpc-stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: var(--rpc-dark);
}

.rpc-stat-content p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--rpc-gray);
}

/* ==========================================================================
   Cards & Panels
   ========================================================================== */
.rpc-card {
    background: var(--rpc-white);
    border-radius: var(--rpc-radius-lg);
    box-shadow: var(--rpc-shadow);
    margin-bottom: 20px;
}

.rpc-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--rpc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rpc-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.rpc-card-body {
    padding: 24px;
}

.rpc-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--rpc-border);
    background: var(--rpc-gray-light);
    border-radius: 0 0 var(--rpc-radius-lg) var(--rpc-radius-lg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.rpc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--rpc-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--rpc-transition);
    text-decoration: none;
    line-height: 1.4;
}

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

.rpc-btn-primary:hover {
    background: var(--rpc-primary-hover);
    color: var(--rpc-white);
}

.rpc-btn-secondary {
    background: var(--rpc-gray-light);
    color: var(--rpc-dark);
    border: 1px solid var(--rpc-border);
}

.rpc-btn-secondary:hover {
    background: var(--rpc-border);
}

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

.rpc-btn-danger {
    background: var(--rpc-danger);
    color: var(--rpc-white);
}

.rpc-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.rpc-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

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

.rpc-btn-group {
    display: flex;
    gap: 8px;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.rpc-form-group {
    margin-bottom: 20px;
}

.rpc-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--rpc-dark);
}

.rpc-form-group label .required {
    color: var(--rpc-danger);
}

.rpc-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--rpc-border);
    border-radius: var(--rpc-radius);
    font-size: 14px;
    transition: var(--rpc-transition);
    background: var(--rpc-white);
}

.rpc-form-control:focus {
    outline: none;
    border-color: var(--rpc-primary);
    box-shadow: 0 0 0 3px var(--rpc-primary-light);
}

.rpc-form-control.error {
    border-color: var(--rpc-danger);
}

.rpc-form-control:disabled {
    background: var(--rpc-gray-light);
    cursor: not-allowed;
}

textarea.rpc-form-control {
    min-height: 100px;
    resize: vertical;
}

select.rpc-form-control {
    cursor: pointer;
}

.rpc-form-hint {
    font-size: 12px;
    color: var(--rpc-gray);
    margin-top: 4px;
}

.rpc-form-error {
    font-size: 12px;
    color: var(--rpc-danger);
    margin-top: 4px;
}

.rpc-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.rpc-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rpc-border);
}

.rpc-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.rpc-form-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--rpc-dark);
}

/* Checkbox & Radio */
.rpc-checkbox,
.rpc-radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.rpc-checkbox input,
.rpc-radio input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

/* ==========================================================================
   Tables
   ========================================================================== */
.rpc-table-wrapper {
    overflow-x: auto;
}

.rpc-table {
    width: 100%;
    border-collapse: collapse;
}

.rpc-table th,
.rpc-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--rpc-border);
}

.rpc-table th {
    background: var(--rpc-gray-light);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rpc-gray);
}

.rpc-table tbody tr:hover {
    background: var(--rpc-gray-light);
}

.rpc-table .actions {
    display: flex;
    gap: 8px;
}

.rpc-table-empty {
    text-align: center;
    padding: 40px;
    color: var(--rpc-gray);
}

/* ==========================================================================
   Status Badges
   ========================================================================== */
.rpc-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.rpc-badge-success {
    background: var(--rpc-success-light);
    color: #166534;
}

.rpc-badge-warning {
    background: var(--rpc-warning-light);
    color: #92400e;
}

.rpc-badge-danger {
    background: var(--rpc-danger-light);
    color: #991b1b;
}

.rpc-badge-info {
    background: var(--rpc-info-light);
    color: #1e40af;
}

.rpc-badge-gray {
    background: var(--rpc-gray-light);
    color: var(--rpc-gray);
}

/* Label badges - inline badges next to form labels */
.rpc-label-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.rpc-label-badge.rpc-badge-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* TERYT Autocomplete */
.rpc-teryt-autocomplete {
    position: relative;
}

.rpc-teryt-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--rpc-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.rpc-teryt-results.active {
    display: block;
}

.rpc-teryt-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.rpc-teryt-item:last-child {
    border-bottom: none;
}

.rpc-teryt-item:hover,
.rpc-teryt-item.selected {
    background: #f0f7ff;
}

.rpc-teryt-item-name {
    font-weight: 600;
    color: var(--rpc-dark);
    font-size: 0.95rem;
}

.rpc-teryt-item-location {
    font-size: 0.8rem;
    color: var(--rpc-gray);
    margin-top: 2px;
}

.rpc-teryt-item-code {
    font-size: 0.75rem;
    color: #92400e;
    background: #fef3c7;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.rpc-teryt-loading {
    padding: 15px;
    text-align: center;
    color: var(--rpc-gray);
}

.rpc-teryt-loading i {
    margin-right: 8px;
}

.rpc-teryt-no-results {
    padding: 15px;
    text-align: center;
    color: var(--rpc-gray);
    font-style: italic;
}

.rpc-teryt-search.has-value {
    border-color: var(--rpc-success);
    background-color: #f0fdf4;
}

#teryt-display {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.rpc-teryt-item-custom {
    background: #fefce8;
    border-left: 3px solid #fcd34d;
}

.rpc-teryt-item-custom .rpc-teryt-item-location {
    color: #92400e;
    font-style: italic;
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.rpc-alert {
    padding: 16px 20px;
    border-radius: var(--rpc-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rpc-alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.rpc-alert-content h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
}

.rpc-alert-content p {
    margin: 0;
    font-size: 13px;
}

.rpc-alert-success {
    background: var(--rpc-success-light);
    border: 1px solid #86efac;
}

.rpc-alert-success .rpc-alert-icon {
    color: var(--rpc-success);
}

.rpc-alert-warning {
    background: var(--rpc-warning-light);
    border: 1px solid #fcd34d;
}

.rpc-alert-warning .rpc-alert-icon {
    color: var(--rpc-warning);
}

.rpc-alert-danger {
    background: var(--rpc-danger-light);
    border: 1px solid #fca5a5;
}

.rpc-alert-danger .rpc-alert-icon {
    color: var(--rpc-danger);
}

.rpc-alert-info {
    background: var(--rpc-info-light);
    border: 1px solid #93c5fd;
}

.rpc-alert-info .rpc-alert-icon {
    color: var(--rpc-info);
}

/* Toast Notifications */
.rpc-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rpc-toast {
    padding: 16px 20px;
    border-radius: var(--rpc-radius);
    background: var(--rpc-white);
    box-shadow: var(--rpc-shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.rpc-toast-success {
    border-left: 4px solid var(--rpc-success);
}

.rpc-toast-error {
    border-left: 4px solid var(--rpc-danger);
}

.rpc-toast-warning {
    border-left: 4px solid var(--rpc-warning);
}

/* ==========================================================================
   Modal
   ========================================================================== */
.rpc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--rpc-transition);
}

.rpc-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rpc-modal {
    background: var(--rpc-white);
    border-radius: var(--rpc-radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--rpc-shadow-lg);
    transform: scale(0.9);
    transition: var(--rpc-transition);
}

.rpc-modal-overlay.active .rpc-modal {
    transform: scale(1);
}

.rpc-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--rpc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rpc-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.rpc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--rpc-gray);
    padding: 0;
    line-height: 1;
}

.rpc-modal-close:hover {
    color: var(--rpc-dark);
}

.rpc-modal-body {
    padding: 24px;
}

.rpc-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--rpc-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   Loading States
   ========================================================================== */
.rpc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* ==========================================================================
   Export XML Styles
   ========================================================================== */
.rpc-export-section {
    max-width: 900px;
}

.rpc-export-panel {
    background: var(--rpc-white);
    border-radius: var(--rpc-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--rpc-shadow);
}

.rpc-export-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rpc-border);
}

.rpc-export-validation,
.rpc-export-actions {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rpc-border);
}

.rpc-export-validation h4,
.rpc-export-actions h4,
.rpc-current-xml h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: var(--rpc-dark);
}

.rpc-export-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rpc-current-xml {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--rpc-radius);
    padding: 20px;
    margin-top: 24px;
}

.rpc-xml-url-row {
    margin-bottom: 16px;
}

.rpc-xml-url-row:last-of-type {
    margin-bottom: 0;
}

.rpc-xml-url-row label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--rpc-dark);
    font-size: 14px;
}

.rpc-input-group {
    display: flex;
    gap: 8px;
}

.rpc-input-group .rpc-input {
    flex: 1;
    font-family: monospace;
    font-size: 13px;
    background: var(--rpc-white);
}

.rpc-input-group .rpc-btn {
    flex-shrink: 0;
}

.rpc-xml-hint {
    margin-top: 16px;
    padding: 12px;
    background: #dbeafe;
    border-radius: 6px;
    font-size: 13px;
    color: #1e40af;
}

.rpc-xml-hint i {
    margin-right: 6px;
}

.rpc-export-info {
    background: var(--rpc-light);
    border-radius: var(--rpc-radius);
    padding: 20px;
    margin-top: 24px;
}

.rpc-export-info h4 {
    margin: 0 0 12px 0;
}

.rpc-export-info ul {
    margin: 0;
    padding-left: 20px;
}

.rpc-export-info li {
    margin-bottom: 6px;
}

.rpc-investment-selector {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    max-width: 500px;
    margin-bottom: 24px;
}

.rpc-investment-selector .rpc-form-group {
    flex: 1;
    margin: 0;
}

.rpc-select-lg {
    padding: 12px 16px;
    font-size: 15px;
}

.rpc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--rpc-border);
    border-top-color: var(--rpc-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.rpc-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ==========================================================================
   XML Preview
   ========================================================================== */
.rpc-xml-preview {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--rpc-radius);
    overflow-x: auto;
    font-family: "Fira Code", "Monaco", "Consolas", monospace;
    font-size: 13px;
    line-height: 1.6;
}

.rpc-xml-preview .tag {
    color: #60a5fa;
}

.rpc-xml-preview .attr {
    color: #fbbf24;
}

.rpc-xml-preview .value {
    color: #34d399;
}

/* ==========================================================================
   Empty States
   ========================================================================== */
.rpc-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.rpc-empty-state-icon {
    font-size: 64px;
    color: var(--rpc-border);
    margin-bottom: 20px;
}

.rpc-empty-state h3 {
    font-size: 20px;
    margin: 0 0 10px;
    color: var(--rpc-dark);
}

.rpc-empty-state p {
    color: var(--rpc-gray);
    margin: 0 0 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .rpc-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        box-shadow: none;
    }
    
    .rpc-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }
    
    .rpc-main-content {
        margin-left: 0;
    }
    
    .rpc-mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        gap: 8px;
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--rpc-white);
        margin: -30px -30px 20px -30px;
        padding: 15px 20px;
        border-bottom: 1px solid var(--rpc-border);
    }
}

@media (max-width: 768px) {
    .rpc-main-content {
        padding: 20px;
    }
    
    .rpc-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .rpc-form-row {
        grid-template-columns: 1fr;
    }
    
    .rpc-table {
        font-size: 13px;
    }
    
    .rpc-table th,
    .rpc-table td {
        padding: 10px 12px;
    }
}

/* ==========================================================================
   Copy URL Button
   ========================================================================== */
.rpc-copy-url {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rpc-copy-url input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--rpc-border);
    border-radius: var(--rpc-radius);
    font-size: 13px;
    background: var(--rpc-gray-light);
}

.rpc-copy-url button {
    padding: 8px 16px;
    background: var(--rpc-primary);
    color: var(--rpc-white);
    border: none;
    border-radius: var(--rpc-radius);
    cursor: pointer;
    transition: var(--rpc-transition);
}

.rpc-copy-url button:hover {
    background: var(--rpc-primary-hover);
}

.rpc-copy-url button.copied {
    background: var(--rpc-success);
}

/* ==========================================================================
   Pending/Suspended Account Messages
   ========================================================================== */
.rpc-account-message {
    max-width: 500px;
    margin: 100px auto;
    text-align: center;
    background: var(--rpc-white);
    padding: 40px;
    border-radius: var(--rpc-radius-lg);
    box-shadow: var(--rpc-shadow-lg);
}

.rpc-account-message-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.rpc-account-message-icon.pending {
    color: var(--rpc-warning);
}

.rpc-account-message-icon.suspended {
    color: var(--rpc-danger);
}

.rpc-account-message h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.rpc-account-message p {
    color: var(--rpc-gray);
    margin: 0 0 20px;
}

/* ==========================================================================
   File List
   ========================================================================== */
.rpc-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rpc-file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rpc-border);
}

.rpc-file-list li:last-child {
    border-bottom: none;
}

.rpc-file-list .file-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rpc-file-list .file-name i {
    color: var(--rpc-primary);
}

.rpc-file-list .file-date {
    font-size: 12px;
    color: var(--rpc-gray);
}

/* ==========================================================================
   Activity List
   ========================================================================== */
.rpc-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rpc-activity-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--rpc-border);
}

.rpc-activity-item:last-child {
    border-bottom: none;
}

.rpc-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rpc-activity-content h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 500;
}

.rpc-activity-content p {
    margin: 0;
    font-size: 13px;
    color: var(--rpc-gray);
}

.rpc-activity-content time {
    font-size: 12px;
    color: var(--rpc-gray);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.rpc-text-center { text-align: center; }
.rpc-text-right { text-align: right; }
.rpc-text-muted { color: var(--rpc-gray); }
.rpc-text-success { color: var(--rpc-success); }
.rpc-text-danger { color: var(--rpc-danger); }
.rpc-text-warning { color: var(--rpc-warning); }

.rpc-mt-0 { margin-top: 0; }
.rpc-mt-1 { margin-top: 10px; }
.rpc-mt-2 { margin-top: 20px; }
.rpc-mt-3 { margin-top: 30px; }
.rpc-mb-0 { margin-bottom: 0; }
.rpc-mb-1 { margin-bottom: 10px; }
.rpc-mb-2 { margin-bottom: 20px; }
.rpc-mb-3 { margin-bottom: 30px; }

.rpc-hidden { display: none !important; }
.rpc-visible { display: block !important; }

/* ==========================================================================
   POPRAWKI v1.2.1 - Style formularzy i elementy UI
   ========================================================================== */

/* Aliasy dla klas formularzy */
.rpc-input,
.rpc-select,
.rpc-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--rpc-border);
    border-radius: var(--rpc-radius);
    font-size: 14px;
    transition: var(--rpc-transition);
    background: var(--rpc-white);
    box-sizing: border-box;
}

.rpc-input:focus,
.rpc-select:focus,
.rpc-textarea:focus {
    outline: none;
    border-color: var(--rpc-primary);
    box-shadow: 0 0 0 3px var(--rpc-primary-light);
}

.rpc-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Przycisk wylogowania w sidebarze */
.rpc-sidebar-logout {
    padding: 15px 20px;
    border-top: 1px solid var(--rpc-border);
    margin-top: auto;
}

.rpc-sidebar-logout .rpc-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: var(--rpc-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--rpc-transition);
}

.rpc-sidebar-logout .rpc-logout-btn:hover {
    background: #fecaca;
    border-color: #f87171;
}

/* Top Bar z wylogowaniem */
.rpc-top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
    gap: 16px;
}

.rpc-top-bar .rpc-user-name {
    font-size: 14px;
    color: var(--rpc-gray);
}

.rpc-top-bar .rpc-logout-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: var(--rpc-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--rpc-transition);
}

.rpc-top-bar .rpc-logout-link:hover {
    background: #fecaca;
}

/* Status XML */
.rpc-xml-status-never {
    background: #f3f4f6;
    color: #6b7280;
}

.rpc-xml-status-auto {
    background: #d1fae5;
    color: #065f46;
}

.rpc-xml-status-manual {
    background: #dbeafe;
    color: #1e40af;
}

/* Info o automatycznym eksporcie */
.rpc-export-auto-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--rpc-radius);
    padding: 16px;
    margin-bottom: 20px;
}

.rpc-export-auto-info h4 {
    margin: 0 0 8px 0;
    color: #0369a1;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rpc-export-auto-info p {
    margin: 0;
    font-size: 13px;
    color: #0c4a6e;
}

.rpc-export-auto-info .rpc-cron-time {
    font-weight: 600;
    background: #0ea5e9;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .rpc-top-bar {
        display: none;
    }
}
