/* Estilos generales - Diseño Oscuro */
.jss-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #0d0d0d;
    padding: 30px;
    border-radius: 12px;
    color: #fff;
    border: 1px solid #222;
}

.jss-form-container h2 {
    color: #00ff99;
    margin-top: 30px;
    margin-bottom: 20px;
}

.jss-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.jss-form-group {
    margin-bottom: 20px;
}

.jss-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: bold;
}

.jss-form-group input,
.jss-form-group select,
.jss-form-group textarea {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.jss-form-group input:focus,
.jss-form-group select:focus,
.jss-form-group textarea:focus {
    outline: none;
    border-color: #00ff99;
}

.jss-submit-btn {
    background: #00ff99;
    color: #0d0d0d;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.jss-submit-btn:hover {
    background: #00cc7a;
    transform: translateY(-2px);
}

/* Estilos para tarjetas - Diseño Negro */
.jss-cards-container {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: #0d0d0d;
    min-height: 100vh;
}

.jss-cards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.jss-cards-header h2 {
    margin: 0;
    color: #00ff99;
    font-size: 24px;
}

.jss-total-count {
    background: #00ff99;
    color: #0d0d0d;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.jss-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media(max-width: 1200px) {
    .jss-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 600px) {
    .jss-cards-grid {
        grid-template-columns: 1fr;
    }
}

.jss-card {
    background: #181818;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.jss-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-color: #00ff99;
}

.jss-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.jss-card-content {
    padding: 15px;
}

.jss-card-content h3 {
    margin: 5px 0;
    font-size: 18px;
    color: #fff;
}

.jss-card-content p {
    margin: 5px 0;
    color: #999;
    font-size: 12px;
}

.jss-stats {
    margin-top: 15px;
}

.jss-stat {
    margin-top: 10px;
}

.jss-stat-name {
    font-size: 12px;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
    color: #ccc;
}

.jss-bar {
    height: 6px;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
}

.jss-bar-fill {
    height: 100%;
    background: #00ff99;
    border-radius: 5px;
}

.jss-card-footer {
    margin-top: 12px;
    text-align: center;
    font-size: 11px;
    color: #666;
}

/* Popup de detalle - Diseño Negro Centrado */
.jss-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.jss-popup-content {
    background: #0d0d0d;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 12px;
    color: #fff;
    position: relative;
    animation: slideUp 0.3s;
    border: 1px solid #222;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.jss-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s;
    z-index: 10;
}

.jss-popup-close:hover {
    color: #ff4d4d;
}

/* Detail popup styles - Diseño Negro */
.jss-detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #222;
}

.jss-detail-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #00ff99;
}

.jss-detail-info h2 {
    margin: 0 0 10px 0;
    color: #00ff99;
}

.jss-detail-info p {
    margin: 8px 0;
    color: #ccc;
}

.jss-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.jss-detail-category {
    background: #181818;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #00ff99;
}

.jss-detail-category h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #00ff99;
    font-size: 16px;
}

.jss-skill-item {
    margin: 12px 0;
}

.jss-skill-name {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 5px;
    color: #ccc;
}

.jss-skill-bar {
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.jss-skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff99, #00cc7a);
    border-radius: 4px;
    transition: width 0.3s;
}

.jss-detail-total {
    grid-column: span 2;
    background: linear-gradient(135deg, #00ff99 0%, #00cc7a 100%);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #0d0d0d;
}

.jss-detail-total h3 {
    margin: 0 0 15px 0;
    color: #0d0d0d;
}

.jss-total-bar {
    height: 30px;
    background: rgba(0,0,0,0.2);
    border-radius: 15px;
    overflow: hidden;
    margin: 15px 0;
}

.jss-total-fill {
    height: 100%;
    background: #0d0d0d;
    border-radius: 15px;
    transition: width 0.5s;
}

.jss-total-percent {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    color: #0d0d0d;
}

/* Scrollbar personalizada */
.jss-popup-content::-webkit-scrollbar {
    width: 8px;
}

.jss-popup-content::-webkit-scrollbar-track {
    background: #0d0d0d;
}

.jss-popup-content::-webkit-scrollbar-thumb {
    background: #00ff99;
    border-radius: 4px;
}

.jss-popup-content::-webkit-scrollbar-thumb:hover {
    background: #00cc7a;
}

/* Mensajes */
.jss-error {
    background: #ff4d4d;
    color: #fff;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    margin: 20px;
}

.jss-success {
    background: #00ff99;
    color: #0d0d0d;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    margin: 20px;
}

.jss-info {
    background: #1a1a1a;
    color: #00ff99;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    margin: 20px;
    border: 1px solid #00ff99;
}

/* Admin Panel */
.jss-admin-panel {
    background: #0d0d0d;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    border: 1px solid #222;
    color: #fff;
}

.jss-admin-panel h2 {
    color: #00ff99;
}

.jss-admin-search {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.jss-search-input {
    flex: 1;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
}

.jss-btn-primary {
    background: #00ff99;
    color: #0d0d0d;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.jss-btn-primary:hover {
    background: #00cc7a;
}

.jss-btn-secondary {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 20px;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
}

.jss-btn-secondary:hover {
    background: #222;
}

.jss-btn-danger {
    background: #ff4d4d;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.jss-btn-danger:hover {
    background: #cc3d3d;
}

.jss-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.jss-admin-table th,
.jss-admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #222;
    color: #ccc;
}

.jss-admin-table th {
    background: #181818;
    font-weight: bold;
    color: #00ff99;
}

.jss-admin-table tr:hover {
    background: #1a1a1a;
}

.jss-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.jss-pagination button {
    padding: 5px 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 3px;
    cursor: pointer;
    color: #fff;
}

.jss-pagination button.active {
    background: #00ff99;
    color: #0d0d0d;
    border-color: #00ff99;
}

.jss-pagination button:hover:not(.active) {
    background: #222;
}

/* Perfil de usuario - Diseño Negro */
.jss-perfil-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #0d0d0d;
    min-height: 100vh;
}

.jss-perfil-card {
    background: #181818;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    overflow: hidden;
    border: 1px solid #222;
}

.jss-perfil-header {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #00cc7a 0%, #00ff99 100%);
    color: #0d0d0d;
}

.jss-circular-foto {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.jss-no-foto {
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.jss-perfil-info h2 {
    margin: 0 0 15px 0;
    color: #0d0d0d;
}

.jss-perfil-info p {
    margin: 8px 0;
    color: rgba(0,0,0,0.8);
}

.jss-perfil-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 30px;
    background: #0d0d0d;
}

.jss-stat-category {
    background: #181818;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 1px solid #222;
}

.jss-stat-category h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #00ff99;
    border-bottom: 2px solid #00ff99;
    padding-bottom: 8px;
}

.jss-total {
    grid-column: span 2;
    background: linear-gradient(135deg, #00cc7a 0%, #00ff99 100%);
    color: #0d0d0d;
}

.jss-total h3 {
    color: #0d0d0d;
    border-bottom-color: rgba(0,0,0,0.3);
}

@media(max-width: 768px) {
    .jss-perfil-header {
        flex-direction: column;
        text-align: center;
    }
    .jss-total {
        grid-column: span 1;
    }
}