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

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: white;
    padding: 12px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    min-width: 0;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.page-title {
    color: #333;
    font-size: 1.1em;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.btn {
    display: inline-block;
    padding: 8px 12px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.btn:hover {
    background: #0056b3;
}

.btn-disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-counter {
    font-weight: bold;
    color: #333;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 15px;
    font-size: 14px;
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.search-input {
    padding: 6px 10px;
    width: 80px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    flex-shrink: 0;
}

.search-btn {
    padding: 6px 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #218838;
}

.content-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: white;
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
}

.content {
    white-space: pre-line;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100%;
}

.footer {
    background: white;
    padding: 12px 20px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.menu-btn {
    padding: 8px 15px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-size: 14px;
}

.menu-btn:hover {
    background: #545b62;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .page-title {
        max-width: 120px;
        font-size: 1em;
    }
    
    .search-input {
        width: 60px;
    }
}

/* Scrollbar personalizado */
.content-container::-webkit-scrollbar {
    width: 8px;
}

.content-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.content-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.content-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}
