/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    text-shadow: none;
    font-size: 2em;
    font-weight: 300;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

#filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

#status-filter {
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

#idea-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#idea-form h2 {
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
    font-size: 1.5em;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

form input, form textarea, form select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

form input:focus, form textarea:focus, form select:focus {
    outline: none;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 1);
}

form textarea {
    resize: vertical;
    min-height: 80px;
    font-size: 16px; /* Previene zoom en móviles */
}

@media (max-width: 768px) {
    form textarea {
        min-height: 100px;
    }
}

.proposal {
    border: 2px solid rgba(102, 126, 234, 0.2);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.proposal:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.proposal h4 {
    margin-bottom: 10px;
    color: #34495e;
}

.section-tabs {
    display: flex;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #7f8c8d;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tab-button:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.ideas-section {
    display: none;
}

.ideas-section.active {
    display: block;
}

.idea-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.idea-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.order-buttons {
    display: flex;
    flex-direction: column;
    margin-right: 10px;
}

.order-btn {
    background: #3498db;
    color: white;
    border: none;
    width: 30px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    margin: 1px 0;
    transition: background-color 0.3s;
}

.order-btn:hover:not(:disabled) {
    background: #2980b9;
}

.order-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.up-btn {
    /* Estilo específico si necesario */
}

.down-btn {
    /* Estilo específico si necesario */
}

.idea-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.idea-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.proposal-item {
    margin: 10px 0;
    padding: 10px;
    border-left: 5px solid #667eea;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.proposal-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.proposal-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.idea-title:hover .toggle-icon {
    transform: rotate(180deg);
}

.proposals-container {
    margin-top: 15px;
}

.proposal-status {
    font-size: 0.85em;
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-pendiente {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
}

.status-en_prueba {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    animation: pulse 2s infinite;
}

.status-aceptada {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.status-rechazada {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

@keyframes pulse {
    0% { box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4); }
    50% { box-shadow: 0 2px 8px rgba(243, 156, 18, 0.8); }
    100% { box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4); }
}

.pros-cons {
    margin-top: 12px;
}

.pros-cons ul {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

.pros-cons li {
    padding: 3px 0;
    position: relative;
    padding-left: 20px;
}

.pros-cons li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.action-btns {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-btns button {
    padding: 8px 16px;
    font-size: 0.9em;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.action-btns button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}

/* Responsivo */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    #filters {
        flex-direction: column;
    }

    #search-input {
        min-width: auto;
    }

    .idea-item {
        padding: 15px;
    }
}

/* Estilos para el modal de agregar nueva propuesta */
.add-proposal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Estilos para el modal de edición de propuestas */
.edit-proposal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Estilos para el modal de edición de ideas */
.edit-idea-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.edit-idea-modal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.modal-content {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-buttons button:first-child {
    background: #3498db;
    color: white;
}

.modal-buttons button:last-child {
    background: #95a5a6;
    color: white;
}

/* Estilos para mensajes de la aplicación */

/* Estilos para modal de input */
.input-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.input-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.input-modal .modal-content {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.input-modal input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.input-modal .modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.input-modal .modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.input-modal .modal-buttons button:first-child {
    background: #3498db;
    color: white;
}

.input-modal .modal-buttons button:last-child {
    background: #95a5a6;
    color: white;
}
#message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    max-width: 300px;
}

.message {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

.message.success {
    border-left: 5px solid #27ae60;
}

.message.error {
    border-left: 5px solid #e74c3c;
}

.message.warning {
    border-left: 5px solid #f39c12;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}