/* ====================== VARIABLES GLOBALES ====================== */
:root {
    --color-fondo: white;
    --color-fondo-menu: lightgrey;
    --color-label: black;
    --color-fondo-input: black;
    --color-texto-placeholder: gray;
    --color-texto-link: white;
    --color-link-resaltado: grey;
    --color-texto-input: black;
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --color-joint: blue;
    --color-pool: red;
    --border-color: darkgray;
    --card-bg: lightblue;
}

[data-theme="dark"] {
      /* Tema oscuro */
    --color-fondo: black;
    --color-fondo-menu: darkgrey;
    --color-label: white;
    --color-fondo-input: white;
    --color-texto-placeholder: gray;
    --color-texto-link: white;
    --color-link-resaltado: lightgrey;
    --color-texto-input: white;
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --color-joint: blue;
    --color-pool: red;
    --border-color: lightgray;
    --card-bg: black;
}

/* ====================== RESET & BASE ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--color-fondo);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--color-fondo);
    display: flex;
    flex-direction: column;
    color: var(--color-label);
    min-height: 100vh;
}
/* Botón para cambiar tema */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    width: 60px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: all 0.4s ease;
}

/*==========================*/
 .mnu_container {
            background-color: var(--color-fondo);
            color: var(--color-label);
        }
.menu-superior {
    height: 66px;
}
.mnu_nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.mnu_menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.mnu_item {
    position: relative;
    background-color: transparent;
}

.mnu_link {
    background-color: var(--color-fondo-menu);
    color: var(--color-label);
    text-decoration: none;
    padding: 18px 20px;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.mnu_link:hover {
    background-color: var(--color-link-resaltado);
    color: var(--color-label);
    border-bottom: 3px solid #3498db;
}

.mnu_submenu {
    position: absolute;
    background: white;
    width: 220px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    top: 100%;
    left: 0;
}

.mnu_item:hover .mnu_submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mnu_subitem {
    border-bottom: 1px solid #f1f1f1;
    background-color: var(--color-fondo);
    color: var(--color-label);
}

.mnu_sublink {
    color: var(--color-label);
    background-color: var(--color-fondo-menu);
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: all 0.2s ease;
}

.mnu_sublink:hover {
    background-color: var(--color-link-resaltado);
    color: var(--color-label);
    padding-left: 25px;
}

.mnu_user {
    display: flex;
    align-items: center;
    color: var(--color-fondo);
    padding: 1px 5px;
    cursor:grab;
    transition: all 0.3s ease;
}

.mnu_user:hover {
    background-color: rgba(171, 4, 4, 0.1);
}

.mnu_avatar {
    width: 50px;
    height: 50px;
    border-radius: 30%;
    background-color: var(--color-fondo);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-top: 1px;
}

.mnu_divider {
    height: 20px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
}

.mnu_title {
    font-size: 16px;
    margin: 20px 0 10px;
    color: var(--color-label);
    padding-left: 10px;
    border-left: 4px solid #3498db;
}

.mnu_code {
    background-color: var(--color-fondo);
    color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    overflow-x: auto;
    max-width: 1200px;
    margin: 30px auto;
}

.mnu_comment {
    color: #95a5a6;
    font-style: italic;
}

.mnu_tag {
    color: #e74c3c;
}

.mnu_attr {
    color: #3498db;
}

.mnu_value {
    color: #2ecc71;
}

@media (max-width: 992px) {
    .mnu_nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .mnu_menu {
        flex-direction: column;
        width: 100%;
    }

    .mnu_item {
        width: 100%;
    }

    .mnu_submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        display: none;
        box-shadow: none;
        margin-left: 20px;
    }

    .mnu_item:hover .mnu_submenu {
        display: block;
    }

    .mnu_user-area {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        padding-top: 10px;
    }
}
/*=================*/

.theme-toggle::after {
    content: '☀️';
    font-size: 20px;
    transition: transform 0.4s ease;
}

[data-theme="dark"] .theme-toggle::after {
    content: '🌙';
    transform: translateX(30px);
}
/* ====================== MENÚ SUPERIOR ====================== */
.menu-superior {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-fondo);
    color: var(--color-label);
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.input-group {
    margin-bottom: 20px;
}

.login-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

/*input[type="text"],
input[type="password"] */
.login-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #415a77;
    border-radius: 5px;
    background-color: var(--color-fondo);
    color: var(--color-label);
    font-size: 16px;
}

.cls-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

/*input[type="text"],
input[type="password"] */
.cls-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #415a77;
    border-radius: 5px;
    background-color: var(--color-fondo);
    color: var(--color-label);
    font-size: 16px;
}

.cls-joint-title {
    width: 30vw;
}

.cls-joint-date {
    width: auto;
}

/*input[type="text"]:focus,
input[type="password"]:focus */
.login-input:focus{
    outline: none;
    border-color: #4cc9f0;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 30px;
}

.menu-opciones {
    display: flex;
    list-style: none;
    margin-left: auto;
}

.menu-opciones li {
    position: relative;
    margin-right: 20px;
}

.menu-opciones a {
    color: var(--color-texto-link);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.menu-opciones a:hover {
    background-color: var(--color-link-resaltado);
    color: var(--color-label);
    border-bottom-color: #3498db;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-fondo);
    min-width: 200px;
    list-style: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1000;
}

.menu-opciones li:hover > .submenu {
    display: block;
}

.submenu a {
    padding: 12px 15px;
    border-bottom: 1px solid #2c3e50;
    color: #ecf0f1;
}

.submenu a:hover {
    background: #34495e;
    color: white;
}
 /* Contenido principal */
.main-container {
    display: flex;
    flex: 1;
}
.contenido-principal {
    flex: 1;
    padding: 5px;
    background-color: var(--color-fondo);
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.sidebar h2 {
      margin-top: 0;
      font-size: 1rem;
      text-align: center;
      color: var(--color-label);
    }
.cls-search {
      width: 100%;
      padding: 10px;
      margin: 15px 0 5px 3px;
      border-radius: 4px;
      box-sizing: border-box;
      font-size: 1rem;
}

.sidebar .buttons {
      display: flex;
      gap: 10px;
      margin-bottom: 30px;
}
.sidebar button {
      flex: 1;
      padding: 10px;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 1rem;
      transition: background-color 0.3s;
}

.sidebar button:hover {
      background-color: #16a085;
   }

/* ====================== CONTENIDO PRINCIPAL ====================== */
.main-content {
    margin-top: 60px;
    margin-left: 250px;
    padding: 20px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    transition: margin-left 0.3s ease;
    width: calc(100% - 250px);
}

.contenedor {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.usercontent {
    background-color: var(--color-fondo);
    display: flex;
    flex: 1;
}

/* ====================== JOINTS GRID ====================== */
.pooler-container {
    max-width: 90vw;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.pooler-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.pooler-show-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 50px;
    gap: 15px;
}

.joint-show-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 50px;
    gap: 15px;
}

.joint-order-selector {
    min-width: 100px;
   color-scheme: dark;
}

.joint-container {
    max-width: 90vw;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.joint-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.joint-card {
    background: white;
    border: 2px solid white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
    cursor: pointer;
}

.joint-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: yellow;
}

.joint-card-header {
    position: relative;
}
.card-content {
    padding: 20px;
}

.card-pooler {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.joint-image {
    width: 100%;
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #2F085A;
    display: block;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pooler-card-title {
    font-size: 1rem;
    font-weight: 100;
    margin-bottom:  5px;
    color: var(--color-label);
}

.joint-card-title {
    font-size: 1rem;
    font-weight: 100;
    margin-bottom:  5px;
    color: var(--color-label);
}
.joint-card-when {
    font-size: 0.75rem;
    font-weight: 100;
    margin-bottom:  1px;
    color: var(--color-label);
}
.pooler-detail-image  {
    width: 400px;
    height: auto;
    background-color: lightskyblue;
    /*object-fit: scale-down;*/
}
.pooler-small-image{
    width: 40px;    
    height: auto;
    background-color: var(--color-fondo);
    border-radius: 4px;
}

.detail-actions-small {
    background-color:#1a73e8;
    display: none;
}

.detail-actions {
    background-color:#1a73e8;
    display: none;
}
.showMenu {
    display: flex;
}
.joint-detail-small.showMenu {
    display: flex;
}

.joint-detail-image {
    width: 300px;
    height: auto;
    background-color: lightskyblue;
    /*object-fit: scale-down;*/
}
.detail-pooler-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid #e0e0e0;
}
.joint-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: #333;
}

.joint-detail-body {
    padding: 30px;
    color:#27ae60;
    background-color: red;
}

 .joint-detail-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}
.detail-description{
    font-size: 1rem;
    margin-bottom: 10px;
    color: whitesmoke;
}

 .joint-detail-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.joint-info-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.joint-header {
    text-align:left;
    margin-bottom: 10px;
    color: white;
}

.joint-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #ffffff;
    font-weight: 700;
}
.joint-form-group {
    width: 60%;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
    background-color: transparent;
}

.suggestions-new-container {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.suggestion-btn {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}
.suggestion-btn:hover {
    background-color: #e3f2fd;
    transform: translateY(-2px);
    border-color: #3498db;
}
.suggestion-btn:active {
    transform: translateY(1px);
}
.btn-number {
    background: #1a73e8;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}
.btn-text {
    flex: 1;
    color: var(--color-label);
}
.btn-shortcut {
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    margin-left: 10px;
}

.joint-header p {
    color: #7f8c8d;
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}
.pooler-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.pooler-info-small {
    display: grid;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    margin: 10px;
}

.pooler-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
}
.pooler-avatar-small {
    width: 100px;
    height: 100px;
    border-radius: 30%;
    object-fit: cover;
    border: 2px solid #3498db;
    padding: 5px;
}
.pooler-name {
    font-size: small;
    color:var(--color-label4);
    margin-bottom: 1px;
}

.pooler-alias {
    color: #777;
    font-size: 0.9rem;
}

.joint-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #C9D0ECFF;
}

.joint-description,
.joint-lang {
    color: rgba(240, 240, 240, 1);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.joint-lang {
    color: rgba(240, 240, 240, 0.7);
    font-size: 0.9rem;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    color: #3498db;
    width: 30px;
    text-align: center;
}

.info-content {
    flex: 1;
}

.info-label {
    font-weight: 600;
    color: yellow;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 500;
    color: lightcyan;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: auto;
}

.action-btn {
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn {
    padding: 3px;
    border-radius: 2px;
    border: none;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-share {
    background-color: yellow;
    color: black;
}

.btn-share:hover {
    background-color: darkgoldenrod;
}

.btn-vcal {
    background-color: green;
    color: black;
}

.btn-vcal:hover {
    background-color: greenyellow;
}


.btn-edit {
    background-color: #27ae60;
    color: white;
}
.btn-rejoint {
    background-color: yellowgreen;
    color: darkblue;
}
.btn-delete {
    background-color: red;
    color: white;
}
.btn-play {
    background-color: blue;
    color: white;
}
.btn-pause {
    background-color: lightcoral;
    color: black;
}
.btn-play:disabled {
    background-color: black;
    color: white;
}
.btn-pause:disabled {
    background-color: black;
    color: white;
}

.btn-join {
    background-color: #3498db;
    color: white;
}

.btn-joinx:disabled {
    background-color: rebeccapurple;
    cursor: not-allowed;
    font-size: smaller;
    font-style: italic;
}
btn-join:disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  background: linear-gradient(135deg, transparent 45%, rgba(255,255,255,0.4) 50%, transparent 55%);
  border-radius: inherit;
  pointer-events: none;
}


.btn-join:hover {
    background-color: #2980b9;
}

.btn-loss {
    background-color: #e74c3c;
    color: white;
}

.btn-loss:hover {
    background-color: #c0392b;
    cursor: not-allowed;
    font-size: smaller;
    font-style: italic;
}

.btn-inpool {
    background-color: blue;
    color: white;
}
.btn-inpool:active {
    display: flex;
    pointer-events: all;
}
.btn-inpool:disabled {
    /*display: none;*/
    pointer-events: none;
}
.btn-outpool:active {
    display: flex;
    pointer-events: all;
}
.btn-outpool:disabled {
    /*display: none;*/
    pointer-events: none;
}
.btn-inpool:hover {
    background-color: lightblue;
}

.btn-outpool {
    background-color: lightsalmon;
    color: black;
}

.btn-outpool:hover {
    background-color: salmon;
}

.btn-info {
    background-color: #2ecc71;
    color: white;
}

.btn-info:hover {
    background-color: #27ae60;
}

.btn-move {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-move:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-move:active {
    transform: translateY(0);
}

.btn-move:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.joint-image-form {
    max-width: 50vw;
    max-height: 50vw;
}

.action-btn:nth-child(1) { background: #3498db; color: white; }
.action-btn:nth-child(2) { background: #2ecc71; color: white; }
.action-btn:nth-child(3) { background: #9b59b6; color: white; }
.action-btn:nth-child(4) { background: #e67e22; color: white; }
.action-btn:nth-child(5) { background: #e74c3c; color: white; grid-column: span 2; }

.action-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Badges */
.joint-badge {
    position: absolute;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.joint-form-control, .form-select {
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
    border-radius: 2px;
    border: 1px solid #e0e6ed;
    transition: all 0.3s;
    background-color: var(--color-fondo);
    color: var(--color-texto-input);
}

.cls-zh {
    width: 18vw;
}

.cls-lang {
    width: 7vw;
}

.cls-plat {
    width: 10vw;
}

.joint-form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(106, 17, 203, 0.15);
}

.joint-badge-darkgreen { top: 115px; right: 15px; background: #154D37FF; }
.joint-badge-silver { top: 105px; left: 15px; background: #C0C0C0FF; color: black; }
.joint-badge-yellow { top: 185px; right: 15px; background: #C6EE56FF; color: black; }
.joint-badge-green { top: 155px; right: 15px; background: #26C98AFF; }
.joint-badge-blue { top: 75px; right: 15px; background: #381CB6FF; }

/* ====================== BOTONES ====================== */
.jointbutt, .poolbutt, .poolerbutt, .joinedbutt, .jointnew, .boxbutt {
    padding: 0.1rem;
    width: auto;
    height: 1.6vw;
    min-height: 24px;
    border: 3px outset transparent;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 4px;
}

.jointbutt:hover { animation: 0.3s rayito 1; }
.poolbutt:hover, .poolerbutt:hover { animation: 0.6s otiyar 1 linear; }
.joinedbutt:hover { animation: 0.3s rayito 1; }
.jointnew:hover { animation: 0.2s downup 1; }
.boxbutt:hover { animation: 0.3s stun 1; }
.boxbutt:active { animation: 0.3s rayito 1; }

.poolerbutt {
    background: transparent;
    border-color: white;
    border-bottom-style: outset;
}

.poolerbutt:hover {
    background: darkblue;
    color: yellow;
    cursor: zoom-out;
}

.jointnew, .joinedbutt {
    border-color: darkorange;
    background: transparent;
}

.jointnew:disabled, .joinedbutt:disabled {
    background: gray;
    color: black;
}

.transferbutt, .configbutt {
    padding: 6px 4px;
    border: 1px solid #995309;
    border-radius: 5px;
    font-weight: bold;
}

.transferbutt {
    background: orangered;
    color: black;
}

.transferbutt:hover {
    background-image: linear-gradient(to right, peru, orangered, peru);
}

.configbutt {
    background: #090808;
    color: #DADADC;
    border-bottom: 1px solid #DBDBDB;
    border-right: 1px solid #DBDBDB;
    border-top: 2px groove #DBDBDB;
}

.configbutt:hover {
    background-image: linear-gradient(to right, darkgray, darkgray, peru);
    color: black;
}

.transferbutt:disabled, .configbutt:disabled, .poolbutt:disabled, .boxbutt:disabled {
    background: linear-gradient(to right, white, darkgray);
    color: darkgray;
}

/* ====================== ANIMACIONES ====================== */
@keyframes rayito {
    from { background-image: linear-gradient(to right, white, darkgray, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black); }
    to { background-image: linear-gradient(to right, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, darkgray, white); }
}

@keyframes otiyar {
    from { background-image: conic-gradient(black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, darkgray, white); }
    to { background-image: conic-gradient(white, darkgray, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black); }
}

@keyframes downup {
    from { background-image: linear-gradient(to bottom, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, darkgray, white); }
    to { background-image: linear-gradient(to bottom, white, darkgray, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black); }
}

@keyframes stun {
    from { background-image: radial-gradient(black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, darkgray, white); }
    to { background-image: radial-gradient(white, darkgray, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black, black); }
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
    }
    .sidebar-title, .sidebar-menu span {
        display: none;
    }
    .sidebar-menu li {
        justify-content: center;
        padding: 15px;
    }
    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
    .joints-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-left: 10px;
    }
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .menu-toggle {
        display: block;
    }
    .joints-grid {
        grid-template-columns: 1fr;
    }
    .action-buttons {
        grid-template-columns: 1fr;
    }
    .action-btn:nth-child(5) {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .joint-image {
        height: 150px;
    }
    .pooler-avatar {
        width: 50px;
        height: 50px;
    }
}

.logo-container {
    border-bottom-right-radius: 15px;
    border-top-left-radius: 15px;
    max-width:3vw;
}
.pooler-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.pooler-detail-title {
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: var(--color-label);
}
.pooler-detail.active {
    display: grid;
}

.joint-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.joint-detail.active {
    display: grid;
}  
.myJoint {
    display: grid;
    pointer-events: all;
    grid-template-columns: repeat(2, 1fr);
}
.myJoint:disabled{
    pointer-events: none;
}

.joint-card-image {
    height: 250px;
    object-fit: scale-down;
}
.gradient-border {
    padding: 10px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-radius: 15px;
}
.joint-card-header{
    display: flex;
    flex-direction: column;  /* Apila los elementos verticalmente */
    align-items: center;     /* Centra horizontalmente los elementos hijos */
    justify-content: center; /* Opcional: centra verticalmente si el div es alto */
    padding: 1px;
    /*border: 1px solid #ccc;*/  /* Opcional: borde para visualizar el div */
    max-width: 600px;
    margin: 1px auto;       /* Centra el div en la página */
    text-align: center;
}
.joint-image-inside-card {
    max-width: 100%;         /* Hace la imagen responsive */
    height: auto;
    margin-bottom: 15px;
    background-color: var(--color-fondo);
    align-items: center;
    display: block;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.joint-title-inside-card {
    font-size: 1rem;
    font-weight: 100;
    margin-bottom:  5px;
    color: var(--color-label);
}

.detail-content {
    background-color: white;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    border-color: var(--color-label);
    border-width: 1px;
    overflow: hidden;
    position: relative;
    border-style: inset;
    animation: fadeIn 0.3s ease;
}

.pooler-card-actions {
    display: grid;
    background-color: transparent;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.card-actions-box {
    background-color: transparent;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}
.card-actions-box.active {
    display: flex;
}
.card-actions {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.close-btn {
    border-radius: 12px;
    border-color: var(--color-label);
    border-width: 1px;
    border-style: inset;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}