/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Settings Styles */
.settings-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.settings-tabs .tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.settings-tabs .tab-btn:hover {
    color: #3b82f6;
    background: #f1f5f9;
}

.settings-tabs .tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

.settings-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.settings-card h3 {
    margin-bottom: 1.5rem;
    color: #1e293b;
    font-size: 1.25rem;
}

.profile-avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.profile-avatar-preview {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
}

.profile-avatar-preview:hover {
    border-color: #3b82f6;
}

.profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #94a3b8;
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-avatar-preview:hover .avatar-overlay {
    opacity: 1;
}

.session-info {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.session-info p {
    margin: 0.5rem 0;
    color: #475569;
}

.session-info strong {
    color: #1e293b;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

.user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e2e8f0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #475569;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f1f5f9;
}

.dropdown-menu a i {
    width: 20px;
    color: #64748b;
}

/* Email Client Styles */
.email-accounts-list {
    margin-bottom: 2rem;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.account-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.account-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.account-card.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.account-info h4 {
    margin: 0;
    color: #1e293b;
}

.account-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

.account-status {
    margin-left: auto;
}

.account-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.stat i {
    color: #3b82f6;
}

.account-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.email-account-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.email-account-selector select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.email-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
}

.email-folder-count {
    float: right;
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.email-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.email-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* WhatsApp Layout Styles */
.whatsapp-layout {
    display: grid;
    grid-template-columns: 300px 1fr 400px;
    gap: 1.5rem;
    height: calc(100vh - 200px);
}

.whatsapp-sidebar {
    overflow-y: auto;
}

.instancias-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.whatsapp-chats-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.whatsapp-chats-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.whatsapp-chats-header h3 {
    margin: 0 0 1rem 0;
}

.whatsapp-chats-header input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.chats-container {
    flex: 1;
    overflow-y: auto;
}

.whatsapp-chat-window {
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8fafc;
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
}

.chat-input-area {
    border-top: 1px solid #e2e8f0;
    padding: 1rem;
    background: white;
}

.chat-input-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.chat-input-wrapper textarea {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
}

/* Dark Mode Styles */
body.dark-mode,
html.dark-mode {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

body.dark-mode .section,
html.dark-mode .section {
    background-color: #1e293b;
    color: #e2e8f0;
}

body.dark-mode .header,
html.dark-mode .header {
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
}

body.dark-mode .app-sidebar,
html.dark-mode .app-sidebar {
    background-color: #1e293b;
    border-right: 1px solid #334155;
}

body.dark-mode .app-side-link,
html.dark-mode .app-side-link {
    color: #cbd5e1;
}

body.dark-mode .app-side-link:hover,
html.dark-mode .app-side-link:hover {
    background-color: #334155;
    color: #ffffff;
}

body.dark-mode .app-side-link.active,
html.dark-mode .app-side-link.active {
    background-color: #3b82f6;
    color: #ffffff;
}

body.dark-mode .card,
html.dark-mode .card,
body.dark-mode .settings-card {
    background-color: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
}

body.dark-mode .card h3,
html.dark-mode .card h3,
body.dark-mode .settings-card h3 {
    color: #f1f5f9;
}

body.dark-mode .section-header h2,
html.dark-mode .section-header h2 {
    color: #f1f5f9;
}

body.dark-mode .section-header p,
html.dark-mode .section-header p {
    color: #cbd5e1;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"],
body.dark-mode input[type="tel"],
body.dark-mode input[type="url"],
body.dark-mode input[type="number"],
body.dark-mode input[type="date"],
body.dark-mode textarea,
body.dark-mode select,
html.dark-mode input[type="text"],
html.dark-mode input[type="email"],
html.dark-mode input[type="password"],
html.dark-mode input[type="tel"],
html.dark-mode input[type="url"],
html.dark-mode input[type="number"],
html.dark-mode input[type="date"],
html.dark-mode textarea,
html.dark-mode select {
    background-color: #0f172a;
    color: #e2e8f0;
    border: 1px solid #334155;
}

body.dark-mode input[type="text"]:focus,
body.dark-mode input[type="email"]:focus,
body.dark-mode input[type="password"]:focus,
body.dark-mode input[type="tel"]:focus,
body.dark-mode input[type="url"]:focus,
body.dark-mode input[type="number"]:focus,
body.dark-mode input[type="date"]:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus,
html.dark-mode input[type="text"]:focus,
html.dark-mode input[type="email"]:focus,
html.dark-mode input[type="password"]:focus,
html.dark-mode input[type="tel"]:focus,
html.dark-mode input[type="url"]:focus,
html.dark-mode input[type="number"]:focus,
html.dark-mode input[type="date"]:focus,
html.dark-mode textarea:focus,
html.dark-mode select:focus {
    border-color: #3b82f6;
    outline: none;
}

body.dark-mode .btn-primary,
html.dark-mode .btn-primary {
    background-color: #3b82f6;
    color: #ffffff;
}

body.dark-mode .btn-secondary,
html.dark-mode .btn-secondary {
    background-color: #475569;
    color: #ffffff;
}

body.dark-mode .btn-danger,
html.dark-mode .btn-danger {
    background-color: #ef4444;
    color: #ffffff;
}

body.dark-mode .user-menu,
html.dark-mode .user-menu {
    color: #e2e8f0;
}

body.dark-mode .user-name,
html.dark-mode .user-name,
body.dark-mode .user-role,
html.dark-mode .user-role {
    color: #cbd5e1;
}

body.dark-mode .dropdown-menu,
html.dark-mode .dropdown-menu {
    background-color: #1e293b;
    border: 1px solid #334155;
}

body.dark-mode .dropdown-menu a,
html.dark-mode .dropdown-menu a {
    color: #e2e8f0;
}

body.dark-mode .dropdown-menu a:hover,
html.dark-mode .dropdown-menu a:hover {
    background-color: #334155;
}

body.dark-mode .settings-tabs .tab-btn,
html.dark-mode .settings-tabs .tab-btn {
    color: #94a3b8;
}

body.dark-mode .settings-tabs .tab-btn:hover,
html.dark-mode .settings-tabs .tab-btn:hover {
    background-color: #334155;
    color: #3b82f6;
}

body.dark-mode .settings-tabs,
html.dark-mode .settings-tabs {
    border-bottom-color: #334155;
}

body.dark-mode .session-info,
html.dark-mode .session-info {
    background-color: #0f172a;
}

body.dark-mode .session-info p,
html.dark-mode .session-info p {
    color: #cbd5e1;
}

body.dark-mode .session-info strong,
html.dark-mode .session-info strong {
    color: #f1f5f9;
}

body.dark-mode label,
html.dark-mode label {
    color: #cbd5e1;
}

body.dark-mode small,
html.dark-mode small {
    color: #94a3b8;
}

body.dark-mode .modal-content,
html.dark-mode .modal-content {
    background-color: #1e293b;
    color: #e2e8f0;
}

body.dark-mode .modal-header,
html.dark-mode .modal-header {
    border-bottom: 1px solid #334155;
}

body.dark-mode .modal-header h2,
html.dark-mode .modal-header h2 {
    color: #f1f5f9;
}

body.dark-mode .close,
html.dark-mode .close {
    color: #cbd5e1;
}

body.dark-mode .close:hover,
html.dark-mode .close:hover {
    color: #ffffff;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.notification i {
    font-size: 1.25rem;
}

.notification-success,
.notification.notification-success {
    background-color: #10b981;
    color: #ffffff;
    border-left: 4px solid #059669;
}

.notification-error,
.notification.notification-error {
    background-color: #ef4444;
    color: #ffffff;
    border-left: 4px solid #dc2626;
}

.notification-info,
.notification.notification-info {
    background-color: #3b82f6;
    color: #ffffff;
    border-left: 4px solid #2563eb;
}

.notification-warning,
.notification.notification-warning {
    background-color: #f59e0b;
    color: #ffffff;
    border-left: 4px solid #d97706;
}

body.dark-mode .notification-success,
html.dark-mode .notification-success {
    background-color: #059669;
    color: #ffffff;
}

body.dark-mode .notification-error,
html.dark-mode .notification-error {
    background-color: #dc2626;
    color: #ffffff;
}

body.dark-mode .notification-info,
html.dark-mode .notification-info {
    background-color: #2563eb;
    color: #ffffff;
}

body.dark-mode .notification-warning,
html.dark-mode .notification-warning {
    background-color: #d97706;
    color: #ffffff;
}

/* WhatsApp Styles */
.instancias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-info {
    background: #3b82f6;
    color: white;
}

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

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Header Styles */
.header {
    background: #ffffff;
    color: #1e293b;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 70px;
    overflow: visible;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    height: 70px;
    max-height: 70px;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    background: transparent;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #1e293b;
}

.logo-text span {
    font-size: 11px;
    opacity: 0.75;
    display: block;
    margin-top: 2px;
    color: #475569;
}

.nav {
    flex: 1;
    margin: 0 20px;
    overflow-x: auto;
    white-space: nowrap;
}

.nav::-webkit-scrollbar {
    height: 6px;
}

.nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #475569;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.nav-link.active {
    background: #e0f2fe;
    color: #0369a1;
    box-shadow: inset 0 -3px 0 #0ea5e9;
}

.nav-link:focus-visible {
    outline: 2px solid #4fb3ff;
    outline-offset: 2px;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    z-index: 10000;
}

.user-info {
    text-align: right;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

.user-role {
    display: block;
    font-size: 12px;
    opacity: 0.75;
    color: #475569;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #1e293b;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 1px solid #e5e7eb;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10001;
    margin-top: 5px;
}

.user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
}

.dropdown-menu a:last-child {
    border-bottom: none;
    color: #e74c3c;
}

/* Main Content */
.main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    padding: 30px 20px;
    margin-left: 230px; /* espacio para sidebar */
}

.section {
    display: none;
    max-width: 1400px;
    margin: 0 auto;
}

.section.active {
    display: block;
}

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

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.section-header p {
    color: #7f8c8d;
    margin: 5px 0 0 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
}

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

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.stat-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.stat-content p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.quick-actions h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.actions-grid {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #495057;
}

.action-btn:hover {
    background: #e9ecef;
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 24px;
}

.action-btn span {
    font-weight: 600;
    font-size: 14px;
}

/* Recent Activity */
.recent-activity {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.recent-activity h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.activity-time {
    font-size: 12px;
    color: #7f8c8d;
}

/* Filters */
.filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Tables */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

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

.data-table th {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-draft {
    background: #f8f9fa;
    color: #6c757d;
}

.status-published {
    background: #d4edda;
    color: #155724;
}

.status-active {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-overdue {
    background: #f8d7da;
    color: #721c24;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-btn-small:hover {
    transform: translateY(-1px);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

/* Login Modal - Security Enhanced */
#loginModal {
    z-index: 3000; /* Higher z-index to ensure it's on top */
}

#loginModal .modal-content {
    position: relative;
    pointer-events: auto; /* Ensure modal content can receive events */
}

#loginModal .close {
    display: none; /* Hide close button for security */
}

#loginModal .modal {
    pointer-events: auto; /* Ensure modal can receive events */
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}

.modal-content.large {
    max-width: 800px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 25px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.loading-spinner p {
    font-size: 18px;
    font-weight: 600;
}

/* Reports */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.report-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.report-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* Designer Layout */
.designer-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
}

.designer-sidebar {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 12px;
    height: fit-content;
}

.designer-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.designer-tab {
    flex: 1;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.designer-tab.active { background: #e5f2ff; color: #2563eb; }

.designer-panel.hidden { display: none; }

.templates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 520px;
    overflow: auto;
}

.template-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

.template-card:hover { background: #f8fafc; }

.template-thumb {
    width: 48px; height: 48px; background: #f3f4f6; border-radius: 6px; display:flex; align-items:center; justify-content:center; font-size:12px; color:#6b7280;
}

.designer-canvas-wrap {
    border:1px solid #e5e7eb; border-radius:10px; background:#fff; padding:8px; overflow:auto;
}

/* App Sidebar */
.app-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 210px;
    bottom: 0;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 12px 10px;
    overflow-y: auto;
    z-index: 999;
}

.app-side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
}

.app-side-link:hover { background: #f3f4f6; }
.app-side-link.active { background: #e0f2fe; color: #0369a1; }

/* Template Editor (Simplified) */
.template-editor-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-top: 20px;
}

.template-sidebar {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.template-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.template-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
}

.template-filters {
    margin-bottom: 15px;
}

.template-filters select {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.templates-list-simple {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.template-item-simple {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
}

.template-item-simple:hover {
    background: #f9fafb;
    border-color: #3b82f6;
}

.template-item-simple.active {
    background: #eff6ff;
    border-color: #3b82f6;
}

.template-item-simple i {
    font-size: 20px;
    color: #6b7280;
    width: 24px;
    text-align: center;
}

.template-item-simple.active i {
    color: #3b82f6;
}

.template-item-info {
    flex: 1;
    min-width: 0;
}

.template-item-info strong {
    display: block;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 2px;
}

.template-item-info span {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.template-item-actions {
    display: flex;
    gap: 4px;
}

.btn-icon {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #6b7280;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.template-editor-area {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 20px;
    min-height: 600px;
}

.template-editor-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500px;
    text-align: center;
    color: #6b7280;
}

.template-editor-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #d1d5db;
}

.template-editor-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.template-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.template-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #1f2937;
}

.template-type-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

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

.template-editor-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.template-editor-tabs .tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    transition: all 0.2s;
}

.template-editor-tabs .tab-btn:hover {
    color: #1f2937;
}

.template-editor-tabs .tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.template-tab-content {
    display: none;
    flex: 1;
    min-height: 500px;
}

.template-tab-content.active {
    display: block;
}

.template-code-editor {
    width: 100%;
    height: 600px;
    padding: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    background: #f9fafb;
}

.template-preview-frame {
    width: 100%;
    height: 600px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
}

.empty-state-small {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-state-small p {
    margin: 0;
    font-size: 14px;
}

.app-sidebar-section { display: flex; flex-direction: column; gap: 4px; }

@media (max-width: 1024px) {
    .app-sidebar { width: 180px; }
    .main { margin-left: 200px; }
}

@media (max-width: 768px) {
    .app-sidebar { position: fixed; width: 0; padding: 0; border-right: none; overflow: hidden; }
    .main { margin-left: 0; }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: #7f8c8d;
}

.text-success {
    color: #27ae60;
}

.text-warning {
    color: #f39c12;
}

.text-danger {
    color: #e74c3c;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

/* Comprobantes Styles */
.comprobantes-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    overflow-x: auto;
}

.comprobantes-tabs .tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    border-radius: 6px 6px 0 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.comprobantes-tabs .tab-btn:hover {
    background: #f8fafc;
    color: #2c3e50;
}

.comprobantes-tabs .tab-btn.active {
    background: #667eea;
    color: white;
    border-bottom-color: #667eea;
}

.comprobante-tab-content {
    display: none;
}

.comprobante-tab-content.active {
    display: block;
}

.quote-item-row,
.invoice-item-row {
    display: grid;
    grid-template-columns: 2fr 100px 120px 120px 40px;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.quote-item-row input,
.invoice-item-row input {
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
}

.quote-item-row input:read-only,
.invoice-item-row input:read-only {
    background: #f8fafc;
    cursor: not-allowed;
}

.arca-status-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

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

.status-header h3 {
    margin: 0;
    color: #2c3e50;
}

.status-info {
    margin-bottom: 15px;
}

.status-info p {
    margin: 5px 0;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
        flex-wrap: wrap;
        height: auto;
        min-height: 70px;
    }
    
    .nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .main {
        padding: 20px 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }
}

/* Admin Section Styles */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #3b82f6;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-header h3 {
    margin: 0;
}

.admin-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-filters input,
.admin-filters select {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-name {
    font-weight: 600;
    color: #1e293b;
}

.user-email {
    font-size: 0.875rem;
    color: #64748b;
}

.user-roles {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #e0e7ff;
    color: #4338ca;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.active {
    background: #10b981;
}

.status-indicator.inactive {
    background: #ef4444;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn.primary {
    background: #3b82f6;
    color: white;
}

.action-btn.warning {
    background: #f59e0b;
    color: white;
}

.action-btn.danger {
    background: #ef4444;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Roles Grid */
.roles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.roles-list,
.permissions-list {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.role-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.role-name {
    font-weight: 600;
    color: #1e293b;
}

.role-description {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.role-level {
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #64748b;
}

.permission-group {
    margin-bottom: 1.5rem;
}

.permission-group-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.permission-item {
    padding: 0.75rem;
    border: 1px solid #f1f5f9;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.permission-name {
    font-weight: 500;
    color: #1e293b;
}

.permission-description {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Subscriptions Grid */
.subscriptions-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.plans-section,
.subscriptions-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.plans-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.plan-card {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.plan-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.plan-card.featured {
    border-color: #3b82f6;
    background: linear-gradient(to bottom, #eff6ff, white);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.plan-description {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.plan-pricing {
    margin-bottom: 1.5rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
}

.plan-period {
    font-size: 1rem;
    color: #64748b;
}

.plan-limits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 4px;
}

.plan-limit-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.plan-limit-label {
    font-size: 0.875rem;
    color: #64748b;
}

.plan-actions {
    display: flex;
    gap: 0.5rem;
}

.subscription-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.subscription-user {
    font-weight: 600;
    color: #1e293b;
}

.subscription-plan {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.subscription-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.settings-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.settings-card h4 {
    margin: 0 0 1.5rem 0;
    color: #1e293b;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.admin-loading,
.admin-empty {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.admin-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3b82f6;
}

.admin-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.admin-empty h3 {
    margin: 0.5rem 0;
    color: #1e293b;
}
