@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    height: 100vh;
    overflow: hidden;
}

/* Dashboard */
#dashboardScreen {
    display: flex;
    height: 100vh;
    flex-direction: column;
}

/* Header - two rows */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #1a1a2e;
    color: #fff;
}

.header-top {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 20px;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-top h1 {
    font-size: 18px;
    font-weight: 600;
}

.header-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 36px;
    padding: 0 20px;
    gap: 12px;
    background: rgba(0,0,0,0.15);
}

.hamburger {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: background 0.3s;
}

.hamburger:hover {
    background: rgba(255,255,255,0.1);
}

.user-name {
    font-size: 13px;
    color: #ccc;
}

.user-role {
    font-size: 11px;
    color: #888;
    margin-right: auto;
}

.btn-logout {
    padding: 4px 14px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    height: 26px;
    line-height: 26px;
}

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

/* Sidebar */
#sidebar {
    position: fixed;
    left: -260px;
    top: 86px;
    width: 260px;
    height: calc(100vh - 86px);
    background: #16213e;
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 99;
}

#sidebar.open {
    left: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 8px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 11px 18px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    gap: 10px;
}

.sidebar-menu li a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.sidebar-menu li a .icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-menu li a .arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s;
}

.has-submenu.open > a .arrow {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.15);
}

.has-submenu.open .submenu {
    max-height: 300px;
}

.submenu li a {
    padding-left: 48px;
    font-size: 13px;
}

.submenu li a:hover {
    background: rgba(255,255,255,0.05);
}

/* Main Content */
#mainContent {
    margin-top: 86px;
    margin-left: 0;
    padding: 25px;
    height: calc(100vh - 86px);
    overflow-y: auto;
    transition: margin-left 0.3s ease;
}

#sidebar.open ~ #mainContent {
    margin-left: 260px;
}

.content-placeholder {
    background: #727272;
    border-radius: 12px;
    padding: 10px;
    min-height: 350px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.content-placeholder h2 {
    color: #000;
    margin-bottom: 12px;
    font-size: 22px;
}

.content-placeholder p {
    color: #000000;
    font-size: 15px;
    line-height: 1.6;
}

/* Dashboard Grid Buttons */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 25px;
}

.dash-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 25px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.dash-btn:hover {
    background: #0f3460;
    color: #fff;
    border-color: #0f3460;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15,52,96,0.2);
}

.dash-btn-icon {
    font-size: 28px;
    line-height: 1;
}

.dash-btn-label {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.dash-btn:hover .dash-btn-label {
    color: #fff;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: #000;
    font-size: 22px;
}

/* Buttons */
.btn-primary {
    padding: 10px 20px;
    background: #0f3460;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
}

.btn-primary:hover {
    background: #1a1a2e;
}

.btn-secondary {
    padding: 10px 20px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Table (only for users) */
.table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    color: #000;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

.data-table td {
    padding: 12px 16px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

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

.data-table .loading,
.data-table .error {
    text-align: center;
    padding: 30px;
    color: #888;
}

.data-table .error {
    color: #e74c3c;
}

.role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.role-admin {
    background: #ffeaa7;
    color: #6c4a00;
}

.role-user {
    background: #dfe6e9;
    color: #2d3436;
}

.acciones {
    white-space: nowrap;
}

.btn-edit {
    padding: 5px 14px;
    background: #0f3460;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
}

.btn-edit:hover {
    background: #1a1a2e;
}

.btn-delete {
    padding: 5px 14px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
}

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

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

.modal {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    width: 420px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal h3 {
    color: #000;
    margin-bottom: 20px;
    font-size: 18px;
}

.modal .form-group {
    margin-bottom: 16px;
}

.modal .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #000;
    font-weight: 500;
    font-size: 13px;
}

.modal .form-group input,
.modal .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.modal .form-group input:focus,
.modal .form-group select:focus {
    outline: none;
    border-color: #0f3460;
}

.modal .checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 14px 8px 0;
    color: #333;
    font-weight: 400;
    font-size: 13px;
    cursor: pointer;
}

.modal .checkbox-inline input[type="checkbox"] {
    width: auto;
    accent-color: #0f3460;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons .btn-primary,
.modal-buttons .btn-secondary {
    flex: 1;
}

/* Modal Large */
.modal-lg {
    width: 50%;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Form Row Layout */
.form-row {
    display: flex;
    gap: 14px;
}

.form-row .form-group {
    flex: 1;
}

/* Cards Container */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 10px;
    background-color: #000000;
    border-radius: 12px;
    min-height: 300px;
    align-items: flex-start;
}

.cards-container .loading,
.cards-container .error {
    width: 100%;
    text-align: center;
    padding: 40px;
    color: #555;
    font-size: 15px;
}

.cards-container .error {
    color: #e74c3c;
}

/* Business Card */
.bcard {
    position: relative;
    display: flex;
    background: transparent;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 430px;
    height: 185px;
    transform-style: preserve-3d;
    transition: box-shadow 0.2s;
}

.bcard::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4ff;
    box-shadow: 0 0 6px #00d4ff, 0 0 20px #00d4ff, 0 0 40px rgba(0,212,255,0.4);
    offset-path: inset(-2px round 13px);
    offset-distance: 0%;
    animation: neon-travel 2.5s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes neon-travel {
    to {
        offset-distance: 100%;
    }
}

.bcard-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    background: linear-gradient(135deg, #4172f5, #0f3460);
    padding: 20px 10px;
    border-radius: 12px 0 0 12px;
}

.bcard-logo {
    width: 100px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(255,255,255,0.8));
}

.bcard-body {
    background: linear-gradient(135deg, #FFB74D, #F57C00);
    flex: 1;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 0 12px 12px 0;
}

.bcard-header {
    margin-bottom: 2px;
}

.bcard-name {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}

.bcard-puesto {
    color: #000;
    font-size: .75rem;
    font-family: 'Poppins', sans-serif;
}

.bcard-sucursal {
    color: #000;
    opacity: 0.85;
    font-size: .7rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.bcard-dir {
    color: #000;
    opacity: 0.85;
    font-size: .65rem;
    line-height: 1.4;
    margin: 2px 0;
    font-family: 'Poppins', sans-serif;
}

.bcard-contact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 2px 0;
}

.bcard-contact span {
    color: #000;
    opacity: 0.9;
    font-size: .7rem;
    font-family: 'Poppins', sans-serif;
}

.bcard-contact strong {
    color: #000;
}

.bcard-email {
    color: #000;
    font-weight: 600;
    font-size: .7rem;
}

.bcard-wa {
    color: #000;
    text-decoration: underline;
    font-weight: 600;
}

.bcard-email a {
    color: #000;
    text-decoration: underline;
    font-weight: 600;
}

.bcard-links {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.bcard-links button {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border: 1px solid #222;
    border-radius: 5px;
    cursor: pointer;
    transition: all .25s linear;
}

.btn-mas,
.bcard-links .btn-delete:hover {
    background-color: #222;
    color: #FFF;
}

.btn-mas:hover,
.bcard-links .btn-delete {
    background-color: transparent;
    color: #222;
}

.bcard-links .btn-edit {
    background-color: #0f3460;
    color: #fff;
    border-color: #0f3460 !important;
}

.bcard-links .btn-edit:hover {
    background-color: #000;
}

.bcard-links .btn-maps {
    background-color: #1a73e8;
    color: #fff;
    border-color: #1a73e8 !important;
}

.bcard-links .btn-maps:hover {
    background-color: #0d47a1;
}



/* Buscador */
.buscador-wrapper {
    margin-bottom: 20px;
    position: relative;
}

.buscador-wrapper::before {
    content: "";
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center;
    background-size: 18px;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.4;
    pointer-events: none;
}

.buscador-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    background: rgba(255,255,255,0.9);
    color: #000;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.buscador-input:focus {
    border-color: #F57C00;
    box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.15);
}

.buscador-input::placeholder {
    color: #999;
}
/* Responsive */

/* View Modal (orange gradient) */
.modal-view {
    background: linear-gradient(135deg, #FFB74D, #F57C00);
    color: #000;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-view h3 {
    color: #000;
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid rgba(0,0,0,0.15);
    padding-bottom: 12px;
}

.ver-mas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 30px;
}

.ver-mas-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ver-mas-item label {
    font-size: 11px;
    font-weight: 700;
    color: #000;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ver-mas-item span {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    line-height: 1.4;
    word-break: break-word;
}
/* Profile Cards */
.pcard {
    width: 460px;
    height: 215px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.pcard-top {
    position: relative;

    display: flex;
    gap: 16px;
    padding: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    align-items: flex-start;
}

.pcard-avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.5);
    background: #fff;
}

.pcard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}


/* Scheduler File Thumbnails */
.sched-file-thumb {
    display: inline-block;
    cursor: pointer;
    line-height: 0;
}
.sched-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}
.sched-thumb:hover {
    transform: scale(1.1);
}
.sched-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s;
}
.sched-file-icon:hover {
    transform: scale(1.1);
}
/* Image Preview Modal */
.modal-img {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.modal-img-content {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    width: 512px;
    max-width: 90vw;
}

.modal-img-content img {
    display: block;
    width: 512px;
    height: 512px;
    object-fit: cover;
    max-width: 100%;
}

.modal-img-content .modal-buttons {
    padding: 16px;
    margin: 0;
}

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

.pcard-id {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    font-family: "Poppins", sans-serif;
}

.pcard-session {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    font-family: "Poppins", sans-serif;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
}

.pcard-red {
    cursor: pointer;
    font-size: 10px;
    color: #fff;
    font-family: "Poppins", sans-serif;
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 3px 12px;
    border-radius: 20px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pcard-red:hover {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 0 12px rgba(255,255,255,0.3);
    transform: scale(1.02);
}

.pcard-wa {
    font-size: 10px;
    font-family: "Poppins", sans-serif;
}

.pcard-wa a {
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
}

.pcard-wa a:hover {
    text-decoration: underline;
}

.pcard-status {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-left: auto;
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-active .status-dot {
    background: #4CAF50;
    box-shadow: 0 0 6px rgba(76,175,80,0.6);
}

.status-inactive .status-dot {
    background: #f44336;
    box-shadow: 0 0 6px rgba(244,67,54,0.6);
}

.status-text {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    font-family: "Poppins", sans-serif;
}

.pcard-bottom {
    padding: 6px 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.pcard-bottom-label {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1px;
    font-family: "Poppins", sans-serif;
}

.pcard-bottom-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: -20px;
}

.pcard-audiencia-label {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: "Poppins", sans-serif;
    text-align: right;
}

.pcard-audiencia-valor {
    text-align: right;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    font-family: "Poppins", sans-serif;
    line-height: 1.1;
    margin-top: 2px;
}

.pcard-avatar-sm {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.08);
    background: #f0f0f0;
}

.pcard-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.pcard-grupo {
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    font-family: "Poppins", sans-serif;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 3px 12px;
    border-radius: 20px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pcard-grupo:hover {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 0 12px rgba(255,255,255,0.3);
    transform: scale(1.02);
}

.pcard-chat {
    font-size: 10px;
    color: rgba(255,255,255,0.75);
    font-family: "Poppins", sans-serif;
    margin-bottom: 4px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.pcard-audiencia {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    font-family: "Poppins", sans-serif;
    margin-top: 6px;
}




.form-select-sm {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    min-width: 70px;
    font-family: inherit;
}
.form-select-sm:focus {
    border-color: #4a6cf7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74,108,247,0.15);
}
#formScheduler textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}
#formScheduler textarea:focus {
    border-color: #4a6cf7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74,108,247,0.15);
}
#formScheduler input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
    font-size: 13px;
    cursor: pointer;
}
.pcard-actions .btn-edit:disabled,
.pcard-actions .btn-delete:disabled,
.btn-primary:disabled,
.btn-delete:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    #sidebar {
        width: 100%;
        left: -100%;
    }

    #sidebar.open ~ #mainContent {
        margin-left: 0;
    }

    .login-card {
        width: 90%;
        padding: 30px 20px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .bcard {
        flex-direction: column;
    }

    .bcard-avatar {
        min-width: unset;
        padding: 15px;
    }

    .bcard-body {
        margin-top: 0.5rem;
    }

    .bcard-links button {
        min-width: 100px;
    }

    .ver-mas-grid {
        grid-template-columns: 1fr;
    }
}

/* Status Badges for Scheduler */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}
.badge-pendiente {
    background: #ff9800;
    color: #fff;
    font-weight: 700;
}
.badge-procesado {
    background: #00c853;
    color: #fff;
    font-weight: 700;
}

/* Modales ocultos por defecto */
#modalUsuario,
#modalImagenPerfil,
#modalGrupoPerfil,
#modalRedPerfil,
#modalMapGrupo,
#modalScheduler,
#modalSchedulerFile,
#modalDirectorio,
#modalVerMas {
    display: none;
}

#modalGrupoTexto,
#modalRedTexto {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 10px 0 20px;
    text-align: center;
}

/* Scheduler file previews */
.sched-video-preview {
    width: 512px;
    max-width: 90vw;
    display: block;
    border-radius: 14px 14px 0 0;
}

.sched-img-preview {
    width: 512px;
    height: 512px;
    object-fit: contain;
    max-width: 100%;
    background: #000;
}

/* Buscador wrapper flex */
.buscador-wrapper-flex {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.buscador-input-flex {
    flex: 1;
}

.filtro-perfiles-select {
    width: auto;
    min-width: 140px;
    padding: 12px 14px;
    cursor: pointer;
}

/* Modal description text */
.modal-desc-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Map group select */
.map-grupo-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.modal-buttons-mt {
    margin-top: 15px;
}

/* Button map group */
.btn-map-grupo {
    width: 25%;
    margin-top: 1px;
    padding: 4px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.2s;
}

/* Scheduler table */
#tablaScheduler td,
#tablaScheduler th {
    font-size: 10px;
}

/* Scheduler header */
.scheduler-header-flex {
    display: flex;
    gap: 8px;
}

/* Helper text */
.helper-text {
    display: block;
    color: #666;
    margin-top: 4px;
}

/* Gestor de Perfiles - titulo/buscador/select estaticos */
.gestor-perfiles-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #727272;
    margin: -35px -35px 20px;
    padding: 35px 35px 0;
}

.gestor-perfiles-sticky .section-header {
    margin-bottom: 14px;
}

.gestor-perfiles-sticky .buscador-wrapper {
    margin-bottom: 0;
}

#mainContent .gestor-perfiles-sticky + .cards-container {
    margin-top: 20px;
}


/* Session expired modal (movido de crm.css al retirar CRM) */
.crm-modal-hidden { display: none; }

.modal-overlay .sesion-modal {
    text-align: center;
    padding: 40px;
}

.sesion-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.sesion-modal-title {
    margin: 0 0 8px;
    color: #1e293b;
}

.sesion-modal-text {
    margin: 0 0 24px;
    color: #64748b;
    font-size: 14px;
}

.sesion-modal-btn {
    padding: 12px 32px !important;
    font-size: 15px !important;
}

/* Placeholder de secciones en desarrollo */
.section-placeholder {
    text-align: center;
    padding: 40px;
    color: #555;
    font-size: 15px;
}
